summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2007-02-27 15:20:55 +0000
committerClint Adams <clint@users.sourceforge.net>2007-02-27 15:20:55 +0000
commitfb25ce0e4dda89ee654c4be2a87eb2c9517fc140 (patch)
tree5a99fcc10bfa397f414897a9165cefb729590918
parente168783d656910a034488d424039dbd2307f9a4c (diff)
downloadzsh-fb25ce0e4dda89ee654c4be2a87eb2c9517fc140.tar.gz
zsh-fb25ce0e4dda89ee654c4be2a87eb2c9517fc140.tar.xz
zsh-fb25ce0e4dda89ee654c4be2a87eb2c9517fc140.zip
23196: tweak apt-cache madison and --installed.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Debian/Command/_apt3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1329b15df..8051dc78d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-27  Clint Adams  <clint@zsh.org>
+
+	* 23196: Completion/Debian/Command/_apt: tweak apt-cache madison
+	and --installed.
+
 2007-02-27  Peter Stephenson  <pws@csr.com>
 
 	* unposted: Completion/Unix/Commands/_ip: another typo
diff --git a/Completion/Debian/Command/_apt b/Completion/Debian/Command/_apt
index 57c8e9469..7005c0e96 100644
--- a/Completion/Debian/Command/_apt
+++ b/Completion/Debian/Command/_apt
@@ -464,6 +464,7 @@ _apt-cache () {
     --recurse:bool \
     -c,--config-file:configfile \
     -o,--option:arbitem \
+    --installed:bool \
     -- \
     /$'help\0'/ \| \
     /$'add\0'/ /$'[^\0]#\0'/ ':files:index files:_files "$expl[@]"' \# \| \
@@ -483,7 +484,7 @@ _apt-cache () {
     /$'xvcg\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
     /$'policy\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
     /$'madison\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
-    /"[]"/ ':argument-1::compadd "$expl_action[@]" help add gencaches showpkg showsrc stats dump dumpavail unmet search show depends rdepends pkgnames dotty policy xvcg'
+    /"[]"/ ':argument-1::compadd "$expl_action[@]" help add gencaches showpkg showsrc stats dump dumpavail unmet search show depends rdepends pkgnames dotty policy xvcg madison'
 
   _apt-cache () {
     local expl_action expl_packages expl_pkg_cache expl_src_cache