Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: _aptitude
- X-seq: zsh-workers 23082
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: PATCH: _aptitude
- Date: Wed, 03 Jan 2007 00:40:11 +0100
- Cc: 405355@xxxxxxxxxxxxxxx
- In-reply-to: <20070102220808.GA16238@xxxxxxxxxxx>
- Mail-followup-to: zsh workers <zsh-workers@xxxxxxxxxx>, 405355@xxxxxxxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Operating-system: Linux 2.6.18.3suspend2+ipw2200 i686
- References: <20061004144010.GB7744@xxxxxxxxxxxxxxx> <20070102220808.GA16238@xxxxxxxxxxx>
Clint Adams <clint@xxxxxxx>:
> > +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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author