]> git.saurik.com Git - apt.git/commitdiff
* Patch from Otavio Salvador to exit successfully after...
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 17:02:36 +0000 (17:02 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 17:02:36 +0000 (17:02 +0000)
Author: mdz
Date: 2003-08-01 20:27:13 GMT
* Patch from Otavio Salvador to exit successfully after --version
(Closes: #203418)

cmdline/apt-cache.cc
debian/changelog

index a9e9e6062c26d1f4bc17ff244aa96ae52959f159..bcf4e1c0f606b00a6fff3565442e0c6f3bb0915d 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: apt-cache.cc,v 1.65 2003/07/22 03:10:01 mdz Exp $
+// $Id: apt-cache.cc,v 1.66 2003/08/01 20:27:13 mdz Exp $
 /* ######################################################################
    
    apt-cache - Manages the cache files
@@ -1581,6 +1581,9 @@ bool ShowHelp(CommandLine &Cmd)
    ioprintf(cout,_("%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 << 
     _("Usage: apt-cache [options] command\n"
       "       apt-cache [options] add file1 [file2 ...]\n"
index dda5dd9addbe7615a4ca598c90a91167ebb23801..f180f22abc39f705b8ea58a8a4bb6c32990dbd80 100644 (file)
@@ -2,6 +2,8 @@ apt (0.5.9) unstable; urgency=low
 
   * Fix typo in example ftp-archive.conf (Closes: #203295)
   * Mention default setting for --all-versions (Closes: #203298)
+  * Patch from Otavio Salvador to exit successfully after --version
+    (Closes: #203418)
 
  --