Pārlūkot izejas kodu

Clarify exit status in dpkg-split and start-stop-daemon --help output

Guillem Jover 15 gadi atpakaļ
vecāks
revīzija
a41fb4e336
3 mainītis faili ar 14 papildinājumiem un 5 dzēšanām
  1. 1 0
      debian/changelog
  2. 8 3
      dpkg-split/main.c
  3. 5 2
      utils/start-stop-daemon.c

+ 1 - 0
debian/changelog

@@ -45,6 +45,7 @@ dpkg (1.16.1) UNRELEASED; urgency=low
     when running them from dpkg. Closes: #610940
   * Use “unselected” as an adjective in dpkg output messages instead of
     “deselected”. Closes: #231089
+  * Clarify exit status in dpkg-split and start-stop-daemon --help output.
 
   [ Updated man page translations ]
   * German (Helge Kreutzmann).

+ 8 - 3
dpkg-split/main.c

@@ -86,9 +86,14 @@ usage(const struct cmdinfo *cip, const char *value)
 "                                     <package>_<version>_<arch>.deb).\n"
 "  -Q|--npquiet                     Be quiet when -a is not a part.\n"
 "  --msdos                          Generate 8.3 filenames.\n"
-"\n"
-"Exit status: 0 = OK;  1 = -a is not a part;  2 = trouble!\n"),
-         ADMINDIR, PARTSDIR);
+"\n"), ADMINDIR, PARTSDIR);
+
+  printf(_(
+"Exit status:\n"
+"  0 = ok\n"
+"  1 = with --auto, file is not a part\n"
+"  2 = trouble\n"));
+
 
   m_output(stdout, _("<standard output>"));
 

+ 5 - 2
utils/start-stop-daemon.c

@@ -420,8 +420,11 @@ usage(void)
 "The IO scheduler <class> can be one of:\n"
 "  real-time, best-effort or idle\n"
 "\n"
-"Exit status:  0 = done      1 = nothing done (=> 0 if --oknodo)\n"
-"              3 = trouble   2 = with --retry, processes wouldn't die\n");
+"Exit status:\n"
+"  0 = done\n"
+"  1 = nothing done (=> 0 if --oknodo)\n"
+"  2 = with --retry, processes would not die\n"
+"  3 = trouble\n");
 }
 
 static void