[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#299037: apt-ftparchive: Separate the output in standard output and standard error



Hi,

since I fell for this again, leaving me with a useless Packages.gz-file,
I wrote a small patch, so usage information is written to stderr instead
of stdout. Please include it in the next version. Thanks!

Cheers,

Wolf
-- 
Büroschimpfwort des Tages: Persönlicher Zigarrenabbeißer - als Alternative zu 
"Schleimer". (Frank Schümann)
diff -Nur apt-0.6.45.original/ftparchive/apt-ftparchive.cc apt-0.6.45/ftparchive/apt-ftparchive.cc
--- apt-0.6.45.original/ftparchive/apt-ftparchive.cc	2006-09-03 16:43:32.077837750 +0000
+++ apt-0.6.45/ftparchive/apt-ftparchive.cc	2006-09-03 16:58:03.312286500 +0000
@@ -547,12 +547,12 @@
 /* */
 bool ShowHelp(CommandLine &CmdL)
 {
-   ioprintf(cout,_("%s %s for %s %s compiled on %s %s\n"),PACKAGE,VERSION,
+   ioprintf(cerr,_("%s %s for %s %s compiled on %s %s\n"),PACKAGE,VERSION,
 	    COMMON_OS,COMMON_CPU,__DATE__,__TIME__);
    if (_config->FindB("version") == true)
       return true;
 
-   cout << 
+   cerr << 
     _("Usage: apt-ftparchive [options] command\n"
       "Commands: packages binarypath [overridefile [pathprefix]]\n"
       "          sources srcpath [overridefile [pathprefix]]\n"

Reply to: