On Thu, 6 Sep 2007 15:45:28 +0200 Adrian von Bidder <[EMAIL PROTECTED]> wrote:
> How can I (more or less efficiently - I do have a script but it's > very crude and probably buggy) download all .debs (and for bonus > points the source pkgs, too) that belong to some .deb that I have > (same src package, same version)? You mean each architecture? apt-cross is one start - it will be easier with the new rewrite (0.2.9) but that isn't ready for an upload yet. It isn't something it was designed to do - it would mean a lot of cache downloads for the first run but much quicker for subsequent runs. The alternative is that the filename in each mirror is predictable for each arch - a simple reg exp should be sufficient. If you like working in Perl, you could look at the SVN code for apt-cross (www.emdebian.org) and adapt that. (The new version works with libapt-pkg-perl and apt-get.) The cache handling in that code could also detect the .dsc and that would provide the rest of the data. Just some ideas. -- Neil Williams ============= http://www.data-freedom.org/ http://www.nosoftwarepatents.com/ http://www.linux.codehelp.co.uk/
pgpjGNoHTdwJA.pgp
Description: PGP signature