Browse Source

* Correctly implement -n as a synonym for --names-only ...
Author: mdz
Date: 2003-12-20 22:56:14 GMT
* Correctly implement -n as a synonym for --names-only (Closes: #224515)

Arch Librarian 22 years ago
parent
commit
fe6fc1c2b5
2 changed files with 5 additions and 4 deletions
  1. 4 4
      cmdline/apt-cache.cc
  2. 1 0
      debian/changelog

+ 4 - 4
cmdline/apt-cache.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
-// $Id: apt-cache.cc,v 1.68 2003/11/19 23:50:51 mdz Exp $
+// $Id: apt-cache.cc,v 1.69 2003/12/20 22:56:14 mdz Exp $
 /* ######################################################################
    
    apt-cache - Manages the cache files
@@ -1645,12 +1645,12 @@ int main(int argc,const char *argv[])
       {'f',"full","APT::Cache::ShowFull",0},
       {'g',"generate","APT::Cache::Generate",0},
       {'a',"all-versions","APT::Cache::AllVersions",0},
-      {0,"names-only","APT::Cache::NamesOnly",0},
-      {'n',"all-names","APT::Cache::AllNames",0},
+      {'n',"names-only","APT::Cache::NamesOnly",0},
+      {0,"all-names","APT::Cache::AllNames",0},
       {0,"recurse","APT::Cache::RecurseDepends",0},
       {'c',"config-file",0,CommandLine::ConfigFile},
       {'o',"option",0,CommandLine::ArbItem},
-      {'n',"installed","APT::Cache::Installed",0},
+      {0,"installed","APT::Cache::Installed",0},
       {0,0,0,0}};
    CommandLine::Dispatch CmdsA[] = {{"help",&ShowHelp},
                                     {"add",&DoAdd},

+ 1 - 0
debian/changelog

@@ -20,6 +20,7 @@ apt (0.5.15) unstable; urgency=low
   * Use isatty rather than ttyname for checking if stdin is a terminal.
     isatty has the advantage of not requiring /proc under Linux, and thus
     Closes: #221728
+  * Correctly implement -n as a synonym for --names-only (Closes: #224515)
 
  --