Package: debian-goodies
Version: 0.47
Severity: wishlist
I find myself writing things that iterate over all packages in an
archive rather a lot, and it would be nice to have a helper tool for
this. Background from an IRC discussion with Matt Zimmerman:
<cjwatson> one of these days I must write myself an easier tool to extract
paths from Sources files. The Directory vs. Files separation is a tad awkward
<mdz> I'd pondered creating some sort of xargs-like tools which would iterate
over packages in an archive
<cjwatson> that would be nice
<cjwatson> I always end up with things like for x in
dists/jaunty/*/source/Sources.gz; do zcat $x; done | grep-dctrl
-sDirectory,Files '' | perl -nle 'if (/^Directory: (.*)$/m) { $dir = $1; }
elsif (/^ .*? .*? (.*)/) { print "$dir/$1"; }' | less
<mdz> it would fit nicely in debian-goodies with dgrep and dglob
Bonus points if it has xargs-like command-line handling so that I don't
have to do silly quoting!
Thanks,
--
Colin Watson [[email protected]]
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]