Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _deb_packages
- X-seq: zsh-workers 16336
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: _deb_packages
- Date: Fri, 14 Dec 2001 13:02:31 -0500
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
This should speed things up.
Index: Completion/Debian/Type/_deb_packages
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Type/_deb_packages,v
retrieving revision 1.1
diff -u -r1.1 _deb_packages
--- Completion/Debian/Type/_deb_packages 2001/04/02 12:21:28 1.1
+++ Completion/Debian/Type/_deb_packages 2001/12/14 18:00:28
@@ -7,7 +7,7 @@
_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
@@ -74,7 +74,5 @@
[[ /var/cache/apt/pkgcache.bin -nt "$1" ||
/var/lib/dpkg/available -nt "$1" ]]
}
-
-
_deb_packages "$@"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author