Explorar o código

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

Closes: #639997
Guillem Jover %!s(int64=15) %!d(string=hai) anos
pai
achega
920596da26
Modificáronse 2 ficheiros con 3 adicións e 1 borrados
  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
     read-only file system and a writable database. Closes: #636700
     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 ]
   * German (Sven Joachim). Closes: #620312

+ 1 - 1
src/help.c

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