about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Debian/Command/_apt2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index faae79d32..e2fdf3c32 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2002-04-12  Clint Adams  <clint@zsh.org>
 
+	* 16973: Completion/Debian/Command/_apt: complete package name
+	argument to apt-cache policy.
+
 	* 16972: Completion/Unix/Type/_hosts: complete for aaaa, zone, mx,
 	soa, txt.
 
diff --git a/Completion/Debian/Command/_apt b/Completion/Debian/Command/_apt
index 636f916fc..4ae42601b 100644
--- a/Completion/Debian/Command/_apt
+++ b/Completion/Debian/Command/_apt
@@ -471,7 +471,7 @@ _apt-cache () {
     /$'depends\0'/ \| \
     /$'pkgnames\0'/ \| \
     /$'dotty\0'/ \| \
-    /$'policy\0'/ \| \
+    /$'policy\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
     /"[]"/ ':argument-1::compadd "$expl_action[@]" help add gencaches showpkg stats dump dumpavail unmet check search show depends pkgnames dotty policy'
 
   _apt-cache () {