* PATCH: _deb_packages
@ 2001-12-14 18:02 Clint Adams
0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2001-12-14 18:02 UTC (permalink / raw)
To: zsh-workers
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 "$@"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-12-14 18:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-14 18:02 PATCH: _deb_packages Clint Adams
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).