Guillaume Rousse <[EMAIL PROTECTED]> writes:

> Le Jeudi 6 Juin 2002 18:03, Guillaume Rousse a �crit :
> > In my personal case, my cooker synthesis still uses old format, whereas the
> > three other use the new one ???
> OK, this one fixed now. urpmi works for me, but bash completion is trashed. 
> Andrej, i guess the same is true for zsh completion ?
> 
> The only idea i currently have to retrieve original package list is an 
> additional sed substituion, this way
> gzip -dc /var/lib/urpmi/<synthesis> | awk -F'@' '/info/ {print $3}' | sed -e 
> 's|^\(.\+\)-[0-9a-z.]\+-[0-9a-z.]\+\.[a-z]\+$|\1|'
> Any better idea ?

Does . in [] is really a . or a any chars ? arch may need 0-9 too.

Just in case, perl-base contains perl executable and is in base system (provided
that you accept /usr for such things), so it will be much simpler ;-)

  gzip -dc /var/lib/urpmi/<synthesis> |
  perl -ne '/info\@([^\@]*?)-[^\@\-]+-[^\@\-]+\.[^\@\-\.]+\@/ and print "$1\n"'

Fran�ois.

Reply via email to