Clint Adams <[EMAIL PROTECTED]>:
> > +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



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to