From: Clint Adams <clint@zsh.org>
To: zsh-workers@sunsite.dk
Subject: PATCH: _deb_packages
Date: Fri, 14 Dec 2001 13:02:31 -0500 [thread overview]
Message-ID: <20011214180231.GA19396@dman.com> (raw)
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 "$@"
reply other threads:[~2001-12-14 18:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011214180231.GA19396@dman.com \
--to=clint@zsh.org \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).