Module Name: src
Committed By: msaitoh
Date: Sun Aug 18 13:25:21 UTC 2019
Modified Files:
src/usr.sbin/sysinst [netbsd-9]: msg.mi.de msg.mi.en msg.mi.es
msg.mi.fr msg.mi.pl util.c
Log Message:
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
To generate a diff of this commit:
cvs rdiff -u -r1.13.2.1 -r1.13.2.2 src/usr.sbin/sysinst/msg.mi.de
cvs rdiff -u -r1.19.2.1 -r1.19.2.2 src/usr.sbin/sysinst/msg.mi.en
cvs rdiff -u -r1.14.2.1 -r1.14.2.2 src/usr.sbin/sysinst/msg.mi.es
cvs rdiff -u -r1.17.2.1 -r1.17.2.2 src/usr.sbin/sysinst/msg.mi.fr
cvs rdiff -u -r1.20.2.1 -r1.20.2.2 src/usr.sbin/sysinst/msg.mi.pl
cvs rdiff -u -r1.29 -r1.29.2.1 src/usr.sbin/sysinst/util.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/sysinst/msg.mi.de
diff -u src/usr.sbin/sysinst/msg.mi.de:1.13.2.1 src/usr.sbin/sysinst/msg.mi.de:1.13.2.2
--- src/usr.sbin/sysinst/msg.mi.de:1.13.2.1 Sun Aug 18 13:21:40 2019
+++ src/usr.sbin/sysinst/msg.mi.de Sun Aug 18 13:25:21 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: msg.mi.de,v 1.13.2.1 2019/08/18 13:21:40 msaitoh Exp $ */
+/* $NetBSD: msg.mi.de,v 1.13.2.2 2019/08/18 13:25:21 msaitoh Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -679,8 +679,11 @@ Installation abgebrochen.}
message delete_xfer_file
{Nach der Installation l�schen}
+/* Called with: Example
+ * $0 = set name base
+ */
message notarfile
-{Das Release-Paket %s existiert nicht.}
+{Das Release-Paket $0 existiert nicht.}
message endtarok
{Alle Distributionspakete wurden erfolgreich entpackt.}
Index: src/usr.sbin/sysinst/msg.mi.en
diff -u src/usr.sbin/sysinst/msg.mi.en:1.19.2.1 src/usr.sbin/sysinst/msg.mi.en:1.19.2.2
--- src/usr.sbin/sysinst/msg.mi.en:1.19.2.1 Sun Aug 18 13:21:40 2019
+++ src/usr.sbin/sysinst/msg.mi.en Sun Aug 18 13:25:21 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: msg.mi.en,v 1.19.2.1 2019/08/18 13:21:40 msaitoh Exp $ */
+/* $NetBSD: msg.mi.en,v 1.19.2.2 2019/08/18 13:25:21 msaitoh Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -652,8 +652,11 @@ Install aborted.}
message delete_xfer_file
{Delete after install}
+/* Called with: Example
+ * $0 = set name base
+ */
message notarfile
-{Release set %s does not exist.}
+{Release set $0 does not exist.}
message endtarok
{All selected distribution sets unpacked successfully.}
Index: src/usr.sbin/sysinst/msg.mi.es
diff -u src/usr.sbin/sysinst/msg.mi.es:1.14.2.1 src/usr.sbin/sysinst/msg.mi.es:1.14.2.2
--- src/usr.sbin/sysinst/msg.mi.es:1.14.2.1 Sun Aug 18 13:21:40 2019
+++ src/usr.sbin/sysinst/msg.mi.es Sun Aug 18 13:25:21 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: msg.mi.es,v 1.14.2.1 2019/08/18 13:21:40 msaitoh Exp $ */
+/* $NetBSD: msg.mi.es,v 1.14.2.2 2019/08/18 13:25:21 msaitoh Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -668,8 +668,11 @@ Instalaci�n interrumpida.}
message delete_xfer_file
{A eliminar despu�s de la instalaci�n}
+/* Called with: Example
+ * $0 = set name base
+ */
message notarfile
-{El conjunto %s no existe.}
+{El conjunto $0 no existe.}
message endtarok
{Todos los conjuntos de distribuci�n han sido desempaquetados
Index: src/usr.sbin/sysinst/msg.mi.fr
diff -u src/usr.sbin/sysinst/msg.mi.fr:1.17.2.1 src/usr.sbin/sysinst/msg.mi.fr:1.17.2.2
--- src/usr.sbin/sysinst/msg.mi.fr:1.17.2.1 Sun Aug 18 13:21:40 2019
+++ src/usr.sbin/sysinst/msg.mi.fr Sun Aug 18 13:25:21 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: msg.mi.fr,v 1.17.2.1 2019/08/18 13:21:40 msaitoh Exp $ */
+/* $NetBSD: msg.mi.fr,v 1.17.2.2 2019/08/18 13:25:21 msaitoh Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -684,8 +684,11 @@ message delete_xfer_file
Effacer apr�s l'installation
}
+/* Called with: Example
+ * $0 = set name base
+ */
message notarfile
-{Le composant %s n'existe pas.}
+{Le composant $0 n'existe pas.}
message endtarok
{
Index: src/usr.sbin/sysinst/msg.mi.pl
diff -u src/usr.sbin/sysinst/msg.mi.pl:1.20.2.1 src/usr.sbin/sysinst/msg.mi.pl:1.20.2.2
--- src/usr.sbin/sysinst/msg.mi.pl:1.20.2.1 Sun Aug 18 13:21:40 2019
+++ src/usr.sbin/sysinst/msg.mi.pl Sun Aug 18 13:25:21 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: msg.mi.pl,v 1.20.2.1 2019/08/18 13:21:40 msaitoh Exp $ */
+/* $NetBSD: msg.mi.pl,v 1.20.2.2 2019/08/18 13:25:21 msaitoh Exp $ */
/* Based on english version: */
/* NetBSD: msg.mi.pl,v 1.36 2004/04/17 18:55:35 atatat Exp */
@@ -648,8 +648,11 @@ Instalacja przerwana.}
message delete_xfer_file
{Usun po zakonczeniu instalacji}
+/* Called with: Example
+ * $0 = set name base
+ */
message notarfile
-{Pakiet %s nie istnieje.}
+{Pakiet $0 nie istnieje.}
message endtarok
{Wszystkie wybrane pakiety dystrybucji zostaly rozpakowane.}
Index: src/usr.sbin/sysinst/util.c
diff -u src/usr.sbin/sysinst/util.c:1.29 src/usr.sbin/sysinst/util.c:1.29.2.1
--- src/usr.sbin/sysinst/util.c:1.29 Wed Jul 24 10:22:04 2019
+++ src/usr.sbin/sysinst/util.c Sun Aug 18 13:25:21 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: util.c,v 1.29 2019/07/24 10:22:04 roy Exp $ */
+/* $NetBSD: util.c,v 1.29.2.1 2019/08/18 13:25:21 msaitoh Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -916,20 +916,25 @@ extract_file(distinfo *dist, int update)
if (!file_exists_p(path)) {
#ifdef SUPPORT_8_3_SOURCE_FILESYSTEM
- /*
- * Update path to use dist->name truncated to the first eight
- * characters and check again
- */
- (void)snprintf(path, sizeof path, "%s/%.8s%.4s", /* 4 as includes '.' */
- ext_dir_for_set(dist->name), dist->name, set_postfix(dist->name));
+ /*
+ * Update path to use dist->name truncated to the first eight
+ * characters and check again
+ */
+ (void)snprintf(path, sizeof path,
+ "%s/%.8s%.4s", /* 4 as includes '.' */
+ ext_dir_for_set(dist->name), dist->name,
+ set_postfix(dist->name));
+
if (!file_exists_p(path)) {
#endif /* SUPPORT_8_3_SOURCE_FILESYSTEM */
+ tarstats.nnotfound++;
- tarstats.nnotfound++;
-
- hit_enter_to_continue(MSG_notarfile, NULL);
- return SET_RETRY;
- }
+ char *err = str_arg_subst(msg_string(MSG_notarfile),
+ 1, &dist->name);
+ hit_enter_to_continue(err, NULL);
+ free(err);
+ return SET_RETRY;
+ }
#ifdef SUPPORT_8_3_SOURCE_FILESYSTEM
}
#endif /* SUPPORT_8_3_SOURCE_FILESYSTEM */