Procházet zdrojové kódy

Add -n synonym for --names-only for apt-cache.
Author: doogie
Date: 2002-11-09 22:47:19 GMT
Add -n synonym for --names-only for apt-cache.

Arch Librarian před 22 roky
rodič
revize
03eb0ddc41
3 změnil soubory, kde provedl 5 přidání a 4 odebrání
  1. 2 2
      cmdline/apt-cache.cc
  2. 1 0
      debian/changelog
  3. 2 2
      doc/apt-cache.8.sgml

+ 2 - 2
cmdline/apt-cache.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
-// $Id: apt-cache.cc,v 1.58 2002/03/26 07:38:58 jgg Exp $
+// $Id: apt-cache.cc,v 1.59 2002/11/09 22:47:19 doogie Exp $
 /* ######################################################################
    
    apt-cache - Manages the cache files
@@ -1316,7 +1316,7 @@ int main(int argc,const char *argv[])
       {'g',"generate","APT::Cache::Generate",0},
       {'a',"all-versions","APT::Cache::AllVersions",0},
       {0,"names-only","APT::Cache::NamesOnly",0},
-      {0,"all-names","APT::Cache::AllNames",0},
+      {'n',"all-names","APT::Cache::AllNames",0},
       {0,"recurse","APT::Cache::RecurseDepends",0},
       {'c',"config-file",0,CommandLine::ConfigFile},
       {'o',"option",0,CommandLine::ArbItem},

+ 1 - 0
debian/changelog

@@ -60,6 +60,7 @@ apt (0.5.5) unstable; urgency=low
     #135021.
   * apt-extracttemplates now prepends the package name when extracting
     files.  Closes: #132776
+  * Add -n synonym for --names-only for apt-cache.  Closes: #130689
 
  -- Jason Gunthorpe <jgg@debian.org>  Sun, 15 Sep 2002 17:16:59 -0600
 

+ 2 - 2
doc/apt-cache.8.sgml

@@ -24,7 +24,7 @@
  <refsynopsisdiv>
    <cmdsynopsis>
       <command>apt-cache</>
-      <arg><option>-hvs</></arg>
+      <arg><option>-hvsn</></arg>
       <arg><option>-o=<replaceable/config string/</></arg>
       <arg><option>-c=<replaceable/file/</></arg>
       <group choice=req>
@@ -319,7 +319,7 @@ Reverse Provides:
      Configuration Item: <literal/APT::Cache::Generate/.
      </VarListEntry>
 
-     <VarListEntry><term><option/--names-only/</>
+     <VarListEntry><term><option/--names-only/</><term><options/-n/</>
      <ListItem><Para>
      Only search on the package names, not the long description. 
      Configuration Item: <literal/APT::Cache::NamesOnly/.