summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--Completion/Debian/Command/_apt8
2 files changed, 13 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f227fafa2..97b577ac5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-12-14  Clint Adams  <clint@zsh.org>
+
+	* 16335: Completion/Debian/Command/_apt:
+	add -g, --all-names, --recurse, pkgnames, dotty, policy
+	completions for apt-cache.
+
 2001-12-12  Oliver Kiddle  <opk@zsh.org>
 
 	* 16323, 16330: Completion/Unix/Command/_webbrowser,
diff --git a/Completion/Debian/Command/_apt b/Completion/Debian/Command/_apt
index e49394197..6d0e2e004 100644
--- a/Completion/Debian/Command/_apt
+++ b/Completion/Debian/Command/_apt
@@ -449,7 +449,10 @@ _apt-cache () {
     -q,--quiet:intlevel \
     -i,--important:bool \
     -f,--full:bool \
+    -g,--generate:bool \
     --names-only:bool \
+    --all-names:bool \
+    --recurse:bool \
     -c,--config-file:configfile \
     -o,--option:arbitem \
     -- \
@@ -465,7 +468,10 @@ _apt-cache () {
     /$'search\0'/ /$'[^\0]#\0'/ ':strings:pattern:' \| \
     /$'show\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
     /$'depends\0'/ \| \
-    /"[]"/ ':argument-1::compadd "$expl_action[@]" help add gencaches showpkg stats dump dumpavail unmet check search show depends'
+    /$'pkgnames\0'/ \| \
+    /$'dotty\0'/ \| \
+    /$'policy\0'/ \| \
+    /"[]"/ ':argument-1::compadd "$expl_action[@]" help add gencaches showpkg stats dump dumpavail unmet check search show depends pkgnames dotty policy'
 
   _apt-cache () {
     local expl_action expl_packages expl_pkg_cache expl_src_cache