From: Frank Terbeck <ft@bewatermyfriend.de>
To: zsh workers <zsh-workers@sunsite.dk>
Cc: 405355@bugs.debian.org
Subject: Re: PATCH: _aptitude
Date: Wed, 03 Jan 2007 00:40:11 +0100 [thread overview]
Message-ID: <20070102234011.GC10866@fsst.voodoo.lan> (raw)
In-Reply-To: <20070102220808.GA16238@scowler.net>
Clint Adams <clint@zsh.org>:
> > +function _aptitude_release() {
> > + #{{{
> > + local expl releases
> > + releases=(
> > +${${(M)${(f)"$(</etc/apt/sources.list)"}\
> > +:#[ $'\t']#deb(|-src)*}/(#b)[ $'\t']#[^ $'\t']##[ $'\t']##[^ $'\t']##[ $'\t']##([^ $'\t']##)*/$match[1]}
> > + )
> > + _wanted list expl release compadd ${expl} - ${(u)releases}
> > + #}}}
> > +}
> > +
>
> Committing this, though this is not the same mechanism for completing
> releases as used in _apt.
True. But I currently don't see the actual benefit in parsing
'apt-cache dump' instead of reading 'sources.list'. Are there any
regular uses that would justify such an expensive action?
Regards, Frank
--
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
-- RFC 1925
next prev parent reply other threads:[~2007-01-02 23:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-04 14:40 Frank Terbeck
2007-01-02 22:08 ` Clint Adams
2007-01-02 23:40 ` Frank Terbeck [this message]
2007-01-04 0:34 ` Bug#405355: " Clint Adams
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=20070102234011.GC10866@fsst.voodoo.lan \
--to=ft@bewatermyfriend.de \
--cc=405355@bugs.debian.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).