瀏覽代碼

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

Guillem Jover 15 年之前
父節點
當前提交
f428f6f616
共有 2 個文件被更改,包括 2 次插入1 次删除
  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.
   * Add missing options to update-alternative --help output.
   * Count “conffile name is duplicated” for dpkg-deb warning count summary.
   * Count “conffile name is duplicated” for dpkg-deb warning count summary.
   * Improve and clarify strings for translation. Closes: #604914
   * Improve and clarify strings for translation. Closes: #604914
+  * Prefix all fatal error messages with “error: ”.
 
 
   [ Raphaël Hertzog ]
   [ Raphaël Hertzog ]
   * Fail properly when debian/source/format is empty. Closes: #600854
   * 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
 void
 print_fatal_error(const char *emsg, const char *contextstring)
 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
 void