瀏覽代碼

dpkg: Fix double “error:” string in missing PATH error output

Closes: #639997
Guillem Jover 15 年之前
父節點
當前提交
920596da26
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 2 0
      debian/changelog
  2. 1 1
      src/help.c

+ 2 - 0
debian/changelog

@@ -207,6 +207,8 @@ dpkg (1.16.1) UNRELEASED; urgency=low
   * Update alternative links only if they change. This allows for a
   * Update alternative links only if they change. This allows for a
     read-only file system and a writable database. Closes: #636700
     read-only file system and a writable database. Closes: #636700
     Based on a patch by Salvatore Bonaccorso <carnil@debian.org>.
     Based on a patch by Salvatore Bonaccorso <carnil@debian.org>.
+  * Fix double “error:” string in dpkg missing PATH error output.
+    Closes: #639997
 
 
   [ Updated dpkg translations ]
   [ Updated dpkg translations ]
   * German (Sven Joachim). Closes: #620312
   * German (Sven Joachim). Closes: #620312

+ 1 - 1
src/help.c

@@ -104,7 +104,7 @@ void checkpath(void) {
 
 
   path_list = getenv("PATH");
   path_list = getenv("PATH");
   if (!path_list)
   if (!path_list)
-    ohshit(_("error: PATH is not set."));
+    ohshit(_("PATH is not set."));
 
 
   for (prog = prog_list; *prog; prog++) {
   for (prog = prog_list; *prog; prog++) {
     struct stat stab;
     struct stat stab;