Sun Aug 18 13:25:21 2019 UTC ()
Pull up following revision(s) (requested by martin in ticket #82):
	usr.sbin/sysinst/util.c: revision 1.30
	usr.sbin/sysinst/msg.mi.fr: revision 1.19
	usr.sbin/sysinst/msg.mi.de: revision 1.15
	usr.sbin/sysinst/msg.mi.es: revision 1.16
	usr.sbin/sysinst/msg.mi.pl: revision 1.22
	usr.sbin/sysinst/msg.mi.en: revision 1.21
PR 54473: fix error prompt when a set file is missing


(msaitoh)
diff -r1.13.2.1 -r1.13.2.2 src/usr.sbin/sysinst/msg.mi.de
diff -r1.19.2.1 -r1.19.2.2 src/usr.sbin/sysinst/msg.mi.en
diff -r1.14.2.1 -r1.14.2.2 src/usr.sbin/sysinst/msg.mi.es
diff -r1.17.2.1 -r1.17.2.2 src/usr.sbin/sysinst/msg.mi.fr
diff -r1.20.2.1 -r1.20.2.2 src/usr.sbin/sysinst/msg.mi.pl
diff -r1.29 -r1.29.2.1 src/usr.sbin/sysinst/util.c

cvs diff -r1.13.2.1 -r1.13.2.2 src/usr.sbin/sysinst/msg.mi.de (expand / switch to unified diff)

--- src/usr.sbin/sysinst/msg.mi.de 2019/08/18 13:21:40 1.13.2.1
+++ src/usr.sbin/sysinst/msg.mi.de 2019/08/18 13:25:21 1.13.2.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: msg.mi.de,v 1.13.2.1 2019/08/18 13:21:40 msaitoh Exp $ */ 1/* $NetBSD: msg.mi.de,v 1.13.2.2 2019/08/18 13:25:21 msaitoh Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -669,28 +669,31 @@ message resolv @@ -669,28 +669,31 @@ message resolv
669} 669}
670 670
671/* Called with: Example 671/* Called with: Example
672 * $0 = target prefix /target/etc 672 * $0 = target prefix /target/etc
673 * $1 = error message No such file or directory 673 * $1 = error message No such file or directory
674 */ 674 */
675message realdir 675message realdir
676{Konnte nicht in das Verzeichnis $0 wechseln: $1 676{Konnte nicht in das Verzeichnis $0 wechseln: $1
677Installation abgebrochen.} 677Installation abgebrochen.}
678 678
679message delete_xfer_file 679message delete_xfer_file
680{Nach der Installation löschen} 680{Nach der Installation löschen}
681 681
 682/* Called with: Example
 683 * $0 = set name base
 684 */
682message notarfile 685message notarfile
683{Das Release-Paket %s existiert nicht.} 686{Das Release-Paket $0 existiert nicht.}
684 687
685message endtarok 688message endtarok
686{Alle Distributionspakete wurden erfolgreich entpackt.} 689{Alle Distributionspakete wurden erfolgreich entpackt.}
687 690
688message endtar 691message endtar
689{Beim Entpacken der Distributionspakete sind Probleme aufgetreten. 692{Beim Entpacken der Distributionspakete sind Probleme aufgetreten.
690Ihre Installation ist daher unvollständig. 693Ihre Installation ist daher unvollständig.
691 694
692Sie haben %d Distributionssets ausgewählt. %d davon wurden nicht 695Sie haben %d Distributionssets ausgewählt. %d davon wurden nicht
693gefunden und %d wegen eines Fehlers übersprungen. 696gefunden und %d wegen eines Fehlers übersprungen.
694Von %d zu entpackenden Paketen sind %d erfolgreich und %d 697Von %d zu entpackenden Paketen sind %d erfolgreich und %d
695mit Fehler entpackt worden. 698mit Fehler entpackt worden.
696 699

cvs diff -r1.19.2.1 -r1.19.2.2 src/usr.sbin/sysinst/msg.mi.en (expand / switch to unified diff)

--- src/usr.sbin/sysinst/msg.mi.en 2019/08/18 13:21:40 1.19.2.1
+++ src/usr.sbin/sysinst/msg.mi.en 2019/08/18 13:25:21 1.19.2.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: msg.mi.en,v 1.19.2.1 2019/08/18 13:21:40 msaitoh Exp $ */ 1/* $NetBSD: msg.mi.en,v 1.19.2.2 2019/08/18 13:25:21 msaitoh Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -642,28 +642,31 @@ message resolv @@ -642,28 +642,31 @@ message resolv
642} 642}
643 643
644/* Called with: Example 644/* Called with: Example
645 * $0 = target prefix /target 645 * $0 = target prefix /target
646 * $1 = error message No such file or directory 646 * $1 = error message No such file or directory
647 */ 647 */
648message realdir 648message realdir
649{Could not change to directory $0: $1. 649{Could not change to directory $0: $1.
650Install aborted.} 650Install aborted.}
651 651
652message delete_xfer_file 652message delete_xfer_file
653{Delete after install} 653{Delete after install}
654 654
 655/* Called with: Example
 656 * $0 = set name base
 657 */
655message notarfile 658message notarfile
656{Release set %s does not exist.} 659{Release set $0 does not exist.}
657 660
658message endtarok 661message endtarok
659{All selected distribution sets unpacked successfully.} 662{All selected distribution sets unpacked successfully.}
660 663
661message endtar 664message endtar
662{There were problems unpacking distribution sets. 665{There were problems unpacking distribution sets.
663Your installation is incomplete. 666Your installation is incomplete.
664 667
665You selected %d distribution sets. %d sets couldn't be found 668You selected %d distribution sets. %d sets couldn't be found
666and %d were skipped after an error occurred. Of the %d 669and %d were skipped after an error occurred. Of the %d
667that were attempted, %d unpacked without errors and %d with errors. 670that were attempted, %d unpacked without errors and %d with errors.
668 671
669Aborting installation. Please recheck your distribution source 672Aborting installation. Please recheck your distribution source

cvs diff -r1.14.2.1 -r1.14.2.2 src/usr.sbin/sysinst/msg.mi.es (expand / switch to unified diff)

--- src/usr.sbin/sysinst/msg.mi.es 2019/08/18 13:21:40 1.14.2.1
+++ src/usr.sbin/sysinst/msg.mi.es 2019/08/18 13:25:21 1.14.2.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: msg.mi.es,v 1.14.2.1 2019/08/18 13:21:40 msaitoh Exp $ */ 1/* $NetBSD: msg.mi.es,v 1.14.2.2 2019/08/18 13:25:21 msaitoh Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -658,28 +658,31 @@ message resolv @@ -658,28 +658,31 @@ message resolv
658} 658}
659 659
660/* Called with: Example 660/* Called with: Example
661 * $0 = target prefix /target 661 * $0 = target prefix /target
662 * $1 = error message No such file or directory 662 * $1 = error message No such file or directory
663 */ 663 */
664message realdir 664message realdir
665{No se ha podido cambiar el directorio a $0: $1 665{No se ha podido cambiar el directorio a $0: $1
666Instalación interrumpida.} 666Instalación interrumpida.}
667 667
668message delete_xfer_file 668message delete_xfer_file
669{A eliminar después de la instalación} 669{A eliminar después de la instalación}
670 670
 671/* Called with: Example
 672 * $0 = set name base
 673 */
671message notarfile 674message notarfile
672{El conjunto %s no existe.} 675{El conjunto $0 no existe.}
673 676
674message endtarok 677message endtarok
675{Todos los conjuntos de distribución han sido desempaquetados 678{Todos los conjuntos de distribución han sido desempaquetados
676correctamente.} 679correctamente.}
677 680
678message endtar 681message endtar
679{Ha habido problemas al desempaquetar los conjuntos de la distribución. 682{Ha habido problemas al desempaquetar los conjuntos de la distribución.
680Su instalación está incompleta. 683Su instalación está incompleta.
681 684
682Ha seleccionado %d conjuntos de distribución. %d conjuntos no han sido 685Ha seleccionado %d conjuntos de distribución. %d conjuntos no han sido
683encontrados, y %d han sido omitidos después de que ocurriera un 686encontrados, y %d han sido omitidos después de que ocurriera un
684error. De los %d que se han intentado, %d se han desempaquetado 687error. De los %d que se han intentado, %d se han desempaquetado
685sin errores y %d con errores. 688sin errores y %d con errores.

cvs diff -r1.17.2.1 -r1.17.2.2 src/usr.sbin/sysinst/msg.mi.fr (expand / switch to unified diff)

--- src/usr.sbin/sysinst/msg.mi.fr 2019/08/18 13:21:40 1.17.2.1
+++ src/usr.sbin/sysinst/msg.mi.fr 2019/08/18 13:25:21 1.17.2.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: msg.mi.fr,v 1.17.2.1 2019/08/18 13:21:40 msaitoh Exp $ */ 1/* $NetBSD: msg.mi.fr,v 1.17.2.2 2019/08/18 13:25:21 msaitoh Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -674,28 +674,31 @@ Impossible de créer le fichier /etc/reso @@ -674,28 +674,31 @@ Impossible de créer le fichier /etc/reso
674 * $0 = target prefix /target 674 * $0 = target prefix /target
675 * $1 = error message No such file or directory 675 * $1 = error message No such file or directory
676 */ 676 */
677message realdir 677message realdir
678{ 678{
679Impossible de déplacer le répertoire $0: $1 679Impossible de déplacer le répertoire $0: $1
680Échec de l'installation.} 680Échec de l'installation.}
681 681
682message delete_xfer_file 682message delete_xfer_file
683{ 683{
684Effacer après l'installation 684Effacer après l'installation
685} 685}
686 686
 687/* Called with: Example
 688 * $0 = set name base
 689 */
687message notarfile 690message notarfile
688{Le composant %s n'existe pas.} 691{Le composant $0 n'existe pas.}
689 692
690message endtarok 693message endtarok
691{ 694{
692Tous les composants sont installés. Veuillez appuyer sur la touche 695Tous les composants sont installés. Veuillez appuyer sur la touche
693Entrée pour continuer. 696Entrée pour continuer.
694} 697}
695 698
696message endtar 699message endtar
697{ 700{
698L'installation des composants est terminée. Toutefois, un ou plusieurs 701L'installation des composants est terminée. Toutefois, un ou plusieurs
699problèmes sont survenus au cours de leur extraction. 702problèmes sont survenus au cours de leur extraction.
700 703
701Vous avez sélectionné %d composants. %d n'ont pu être installés, 704Vous avez sélectionné %d composants. %d n'ont pu être installés,

cvs diff -r1.20.2.1 -r1.20.2.2 src/usr.sbin/sysinst/msg.mi.pl (expand / switch to unified diff)

--- src/usr.sbin/sysinst/msg.mi.pl 2019/08/18 13:21:40 1.20.2.1
+++ src/usr.sbin/sysinst/msg.mi.pl 2019/08/18 13:25:21 1.20.2.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: msg.mi.pl,v 1.20.2.1 2019/08/18 13:21:40 msaitoh Exp $ */ 1/* $NetBSD: msg.mi.pl,v 1.20.2.2 2019/08/18 13:25:21 msaitoh Exp $ */
2/* Based on english version: */ 2/* Based on english version: */
3/* NetBSD: msg.mi.pl,v 1.36 2004/04/17 18:55:35 atatat Exp */ 3/* NetBSD: msg.mi.pl,v 1.36 2004/04/17 18:55:35 atatat Exp */
4 4
5/* 5/*
6 * Copyright 1997 Piermont Information Systems Inc. 6 * Copyright 1997 Piermont Information Systems Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * 8 *
9 * Written by Philip A. Nelson for Piermont Information Systems Inc. 9 * Written by Philip A. Nelson for Piermont Information Systems Inc.
10 * 10 *
11 * Redistribution and use in source and binary forms, with or without 11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions 12 * modification, are permitted provided that the following conditions
13 * are met: 13 * are met:
14 * 1. Redistributions of source code must retain the above copyright 14 * 1. Redistributions of source code must retain the above copyright
@@ -638,28 +638,31 @@ message resolv @@ -638,28 +638,31 @@ message resolv
638} 638}
639 639
640/* Called with: Example 640/* Called with: Example
641 * $0 = target prefix /target 641 * $0 = target prefix /target
642 * $1 = error message No such file or directory 642 * $1 = error message No such file or directory
643 */ 643 */
644message realdir 644message realdir
645{Nie moglem przejsc do katalogu $0: $1 645{Nie moglem przejsc do katalogu $0: $1
646Instalacja przerwana.} 646Instalacja przerwana.}
647 647
648message delete_xfer_file 648message delete_xfer_file
649{Usun po zakonczeniu instalacji} 649{Usun po zakonczeniu instalacji}
650 650
 651/* Called with: Example
 652 * $0 = set name base
 653 */
651message notarfile 654message notarfile
652{Pakiet %s nie istnieje.} 655{Pakiet $0 nie istnieje.}
653 656
654message endtarok 657message endtarok
655{Wszystkie wybrane pakiety dystrybucji zostaly rozpakowane.} 658{Wszystkie wybrane pakiety dystrybucji zostaly rozpakowane.}
656 659
657message endtar 660message endtar
658{Wystapil blad w trackie rozpakowywania pakietow. 661{Wystapil blad w trackie rozpakowywania pakietow.
659Twoja instalacja jest niekompletna. 662Twoja instalacja jest niekompletna.
660 663
661Wybrales %d pakietow dystrybucyjnych. %d pakiety nie zostaly znalezione 664Wybrales %d pakietow dystrybucyjnych. %d pakiety nie zostaly znalezione
662i %d zostalo pominietych z powodu bledow. Z %d docelowych, 665i %d zostalo pominietych z powodu bledow. Z %d docelowych,
663%d rozpakowalo sie bez bledow i %d z bledami. 666%d rozpakowalo sie bez bledow i %d z bledami.
664 667
665Instalacja zostala przerwana. Sprawdz zrodlo swojej dystrybucji i rozwaz 668Instalacja zostala przerwana. Sprawdz zrodlo swojej dystrybucji i rozwaz

cvs diff -r1.29 -r1.29.2.1 src/usr.sbin/sysinst/util.c (expand / switch to unified diff)

--- src/usr.sbin/sysinst/util.c 2019/07/24 10:22:04 1.29
+++ src/usr.sbin/sysinst/util.c 2019/08/18 13:25:21 1.29.2.1
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: util.c,v 1.29 2019/07/24 10:22:04 roy Exp $ */ 1/* $NetBSD: util.c,v 1.29.2.1 2019/08/18 13:25:21 msaitoh Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -906,40 +906,45 @@ extract_file(distinfo *dist, int update) @@ -906,40 +906,45 @@ extract_file(distinfo *dist, int update)
906 owd = getcwd(NULL, 0); 906 owd = getcwd(NULL, 0);
907 907
908 /* Do we need to fetch the file now? */ 908 /* Do we need to fetch the file now? */
909 if (fetch_fn != NULL) { 909 if (fetch_fn != NULL) {
910 rval = fetch_fn(dist->name); 910 rval = fetch_fn(dist->name);
911 if (rval != SET_OK) 911 if (rval != SET_OK)
912 return rval; 912 return rval;
913 } 913 }
914 914
915 /* check tarfile exists */ 915 /* check tarfile exists */
916 if (!file_exists_p(path)) { 916 if (!file_exists_p(path)) {
917 917
918#ifdef SUPPORT_8_3_SOURCE_FILESYSTEM 918#ifdef SUPPORT_8_3_SOURCE_FILESYSTEM
919 /* 919 /*
920 * Update path to use dist->name truncated to the first eight 920 * Update path to use dist->name truncated to the first eight
921 * characters and check again 921 * characters and check again
922 */ 922 */
923 (void)snprintf(path, sizeof path, "%s/%.8s%.4s", /* 4 as includes '.' */ 923 (void)snprintf(path, sizeof path,
924 ext_dir_for_set(dist->name), dist->name, set_postfix(dist->name)); 924 "%s/%.8s%.4s", /* 4 as includes '.' */
 925 ext_dir_for_set(dist->name), dist->name,
 926 set_postfix(dist->name));
 927
925 if (!file_exists_p(path)) { 928 if (!file_exists_p(path)) {
926#endif /* SUPPORT_8_3_SOURCE_FILESYSTEM */ 929#endif /* SUPPORT_8_3_SOURCE_FILESYSTEM */
 930 tarstats.nnotfound++;
927 931
928 tarstats.nnotfound++; 932 char *err = str_arg_subst(msg_string(MSG_notarfile),
929 933 1, &dist->name);
930 hit_enter_to_continue(MSG_notarfile, NULL); 934 hit_enter_to_continue(err, NULL);
931 return SET_RETRY; 935 free(err);
932 } 936 return SET_RETRY;
 937 }
933#ifdef SUPPORT_8_3_SOURCE_FILESYSTEM 938#ifdef SUPPORT_8_3_SOURCE_FILESYSTEM
934 } 939 }
935#endif /* SUPPORT_8_3_SOURCE_FILESYSTEM */ 940#endif /* SUPPORT_8_3_SOURCE_FILESYSTEM */
936 941
937 tarstats.nfound++; 942 tarstats.nfound++;
938 /* cd to the target root. */ 943 /* cd to the target root. */
939 if (update && (dist->set == SET_ETC || dist->set == SET_X11_ETC)) { 944 if (update && (dist->set == SET_ETC || dist->set == SET_X11_ETC)) {
940 make_target_dir("/.sysinst"); 945 make_target_dir("/.sysinst");
941 target_chdir_or_die("/.sysinst"); 946 target_chdir_or_die("/.sysinst");
942 } else if (dist->set == SET_PKGSRC) 947 } else if (dist->set == SET_PKGSRC)
943 target_chdir_or_die("/usr"); 948 target_chdir_or_die("/usr");
944 else 949 else
945 target_chdir_or_die("/"); 950 target_chdir_or_die("/");