On Sun, 2009-05-31 at 17:07 +0200, Stefano Zacchiroli wrote: > The part on which uscan can improve its support is automation of the > download of multiple tarballs. My current hack^Wsolution is to rely on > several debian/*.watch files and invoke it from a Makefile snippet > [2]. What about supporting this out of the box in uscan? > > I see two possible ways of doing that: > > - make uscan understand debian/*.watch files, in the style of devscripts > - extend the debian/watch format to support multiple declarations
This second option should /mostly/ work already. Certainly, multiple entries in a single watch file are supported; the only problem is that there is an (not altogether unreasonable given the tool's design) assumption that they are all for the same package. By way of an example, I concatenated two watchfiles I had to hand. As you can see, both upstream tarballs are successfully downloaded. The --no-symlink option is required as otherwise one ends up with foo_1.8.orig.tar.gz as a symlink to the scheme48 tarball and foo_3.4.3.orig.tar.gz as a symlink to that for v-sim. $ cat watchmulti version=3 opts=downloadurlmangle=s{([^/]+)/download.html$}{$1/scheme48-$1.tgz},filenamemangle=s{([^/]+)/download.html}{scheme48-$1.tgz} \ http://s48.org/index.html ([\d\.]+)/download.html opts=filenamemangle=s/.*v_sim-(.*).tar.bz2/v-sim_$1.orig.tar.bz2/,downloadurlmangle=s{-confirm.en.html\?}{/} \ http://inac.cea.fr/L_Sim/V_Sim/download.html .*v_sim-(.*).tar.bz2 $ uscan --watchfile=watchmulti --upstream-version=0 --package=foo --download --repack --no-symlink foo: Newer version (1.8) available on remote site: http://s48.org/1.8/scheme48-1.8.tgz (local version is 0) foo: Successfully downloaded updated package scheme48-1.8.tgz foo: Newer version (3.4.3) available on remote site: http://inac.cea.fr/L_Sim/V_Sim/download/v_sim-3.4.3.tar.bz2 (local version is 0) foo: Successfully downloaded updated package v-sim_3.4.3.orig.tar.gz Regards, Adam -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org