From: Clint Adams <schizo@debian.org>
To: "Jörg Sommer" <joerg@alea.gnuu.de>, 457981@bugs.debian.org
Cc: zsh-workers@sunsite.dk
Subject: Re: Bug#457981: zsh-beta: slow release completion of apt-get
Date: Thu, 27 Dec 2007 21:26:19 -0500 [thread overview]
Message-ID: <20071228022619.GA7361@scowler.net> (raw)
In-Reply-To: <20071227122150.GA23485@alea.gnuu.de>
On Thu, Dec 27, 2007 at 01:21:50PM +0100, Jörg Sommer wrote:
> the completion of the release for apt-get install takes very long at me.
> I found in _apt apt-cache dump is used for getting the release names.
> This takes very long. Maybe you better use apt-cache policy.
>
> % apt-cache policy |sed '/release/!d; s/.*a=//; s/,.*//'
> now
> unstable
> grml-testing
> unstable
> unstable
> experimental
> mplayer
> unstable
> unstable
> unstable
I think there was a reason we didn't do this, but I suppose if it's
significant, someone will yell.
Index: Completion/Debian/Command/_apt
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_apt,v
retrieving revision 1.13
diff -u -r1.13 _apt
--- Completion/Debian/Command/_apt 4 Jul 2007 02:59:46 -0000 1.13
+++ Completion/Debian/Command/_apt 28 Dec 2007 02:22:19 -0000
@@ -551,7 +551,7 @@
_cache_invalid APT_releases ) && ! _retrieve_cache APT_releases;
then
_apt_releases=(
-${${${${(M)${(f)"$(apt-cache dump)"}:# #Archive:*}# #Archive: #}:#*\(null\)*}/ /}
+${${${${(M)${(f)"$(apt-cache policy)"}:#*release*}#*a=}%%,*}:#now}
)
typeset -U _apt_releases
_store_cache APT_releases _apt_releases
parent reply other threads:[~2007-12-28 2:26 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20071227122150.GA23485@alea.gnuu.de>]
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=20071228022619.GA7361@scowler.net \
--to=schizo@debian.org \
--cc=457981@bugs.debian.org \
--cc=joerg@alea.gnuu.de \
--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).