Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: _aptitude



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