Explorar o código

libdpkg: Always prefix "error" to fatal error message output

Guillem Jover %!s(int64=15) %!d(string=hai) anos
pai
achega
f428f6f616
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 0
      debian/changelog
  2. 1 1
      lib/dpkg/ehandle.c

+ 1 - 0
debian/changelog

@@ -15,6 +15,7 @@ dpkg (1.16.0) UNRELEASED; urgency=low
   * Add missing options to update-alternative --help output.
   * Count “conffile name is duplicated” for dpkg-deb warning count summary.
   * Improve and clarify strings for translation. Closes: #604914
+  * Prefix all fatal error messages with “error: ”.
 
   [ Raphaël Hertzog ]
   * Fail properly when debian/source/format is empty. Closes: #600854

+ 1 - 1
lib/dpkg/ehandle.c

@@ -351,7 +351,7 @@ catch_fatal_error(void)
 void
 print_fatal_error(const char *emsg, const char *contextstring)
 {
-  fprintf(stderr, "%s: %s\n",thisname,emsg);
+  fprintf(stderr, _("%s: error: %s\n"), thisname, emsg);
 }
 
 void