summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Debian/Type/_deb_packages4
2 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 97b577ac5..bcccf3a4d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2001-12-14  Clint Adams  <clint@zsh.org>
 
+	* 16336: Completion/Debian/Type/_deb_packages:
+	use apt-cache --generate pkgnames instead of
+	apt-cache dumpavail.
+
 	* 16335: Completion/Debian/Command/_apt:
 	add -g, --all-names, --recurse, pkgnames, dotty, policy
 	completions for apt-cache.
diff --git a/Completion/Debian/Type/_deb_packages b/Completion/Debian/Type/_deb_packages
index be36c817c..cc5eaf109 100644
--- a/Completion/Debian/Type/_deb_packages
+++ b/Completion/Debian/Type/_deb_packages
@@ -7,7 +7,7 @@ _deb_packages_update_avail () {
       _cache_invalid DEBS_avail ) && ! _retrieve_cache DEBS_avail;
   then
     _deb_packages_cache_avail=(
-      ${(f)"$(apt-cache dumpavail | awk '/^Package:/ { print $2 }')"}
+      ${(f)"$(apt-cache --generate pkgnames)"}
     )
 
     _store_cache DEBS_avail _deb_packages_cache_avail
@@ -75,6 +75,4 @@ _deb_packages () {
 	     /var/lib/dpkg/available -nt "$1" ]]
 	  }
 
-
-
 _deb_packages "$@"