Просмотр исходного кода

Refer to host instead of build architecture and quote it in error string

Guillem Jover лет назад: 19
Родитель
Сommit
1e4bf10358
2 измененных файлов с 8 добавлено и 2 удалено
  1. 5 0
      ChangeLog
  2. 3 2
      scripts/dpkg-gencontrol.pl

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2007-10-08  Guillem Jover  <guillem@debian.org>
+
+	* scripts/dpkg-gencontrol.pl: Refer to host architecture (instead of
+	build) in error string, and quote architecture name.
+
 2007-10-08  Frank Lichtenheld  <djpig@debian.org>,
             Guillem Jover  <guillem@debian.org>
 

+ 3 - 2
scripts/dpkg-gencontrol.pl

@@ -183,8 +183,9 @@ for $_ (keys %fi) {
 		              join("' `", @invalid_archs)))
 		    if @invalid_archs >= 1;
 		grep(debarch_is($host_arch, $_), @archlist) ||
-                    &error(sprintf(_g("current build architecture %s does not".
-                                      " appear in package's list (%s)"),
+		    error(sprintf(_g("current host architecture '%s' does " .
+		                     "not appear in package's architecture " .
+		                     "list (%s)"),
 		                   $host_arch, "@archlist"));
 		$f{$_} = $host_arch;
             }