summary refs log tree commit diff
path: root/Completion/Debian
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2001-12-14 18:03:57 +0000
committerClint Adams <clint@users.sourceforge.net>2001-12-14 18:03:57 +0000
commitd01de9e7b7fab5aa132ec53861e103b1bdcb2910 (patch)
tree27545e7b0dc946f76f6e920032fc27e64cba4727 /Completion/Debian
parent4116fc9bc454dba0ae54440be660b191737d7228 (diff)
downloadzsh-d01de9e7b7fab5aa132ec53861e103b1bdcb2910.tar.gz
zsh-d01de9e7b7fab5aa132ec53861e103b1bdcb2910.tar.xz
zsh-d01de9e7b7fab5aa132ec53861e103b1bdcb2910.zip
16336: use apt-cache --generate pkgnames instead of dumpavail
Diffstat (limited to 'Completion/Debian')
-rw-r--r--Completion/Debian/Type/_deb_packages4
1 files changed, 1 insertions, 3 deletions
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 "$@"