]> git.saurik.com Git - apt.git/commitdiff
* Correctly implement -n as a synonym for --names-only ...
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 17:04:03 +0000 (17:04 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 17:04:03 +0000 (17:04 +0000)
Author: mdz
Date: 2003-12-20 22:56:14 GMT
* Correctly implement -n as a synonym for --names-only (Closes: #224515)

cmdline/apt-cache.cc
debian/changelog

index 1933f60c640343275a9a015cb3bf340903adee49..00a2c6883a1c346e6c5139c452cacded8257aca1 100644 (file)
@@ -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},
index 9207622fceb4f996767ab20fec02a33734dd00e7..7e587de9f33c6c44081abdc37197e640547afcb0 100644 (file)
@@ -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)
 
  --