Philip Hands <phil@hands.com> writes:
...
> I failed to resist that, so I _think_ this sed command implements the
> same effect as those greps/seds & awk:
>
> sed -ne '/^deb[[:space:]]\+cdrom/d;
> /\(security.debian.org\|volatile.debian.\(net\|org\)\)/d;
> /^deb[[:space:]]\+.*[[:space:]]\+main/{
> s,\(deb[[:space:]]\+\(\[[^]]*\][[:space:]]\+\|\)[^[:space:]]*\).*$,\1,;
> s,^deb file,deb copy,;
> s,/* *$,,;
> p
> }'
I seem to have neglected to type the line I had intended saying "If
this change needs to wait for post-buster anyway, then we could cut down
the number of sed/grep invocations".
This was not meant as a suggestion that we should do this sort of thing
this late, particularly since the suggested patch may actually be broken
if it's supposed to be able to deal with, e.g.:
deb [arch=amd64] file:///...
because that won't currently end up as:
deb [arch=amd64] copy:///...
so I completely sympathise with Cyril's caution.
Cheers, Phil.
--
|)| Philip Hands [+44 (0)20 8530 9560] HANDS.COM Ltd.
|-| http://www.hands.com/ http://ftp.uk.debian.org/
|(| Hugo-Klemm-Strasse 34, 21075 Hamburg, GERMANY
Attachment:
signature.asc
Description: PGP signature