Hi Joachim, I tried to fix a watch file or r-other-bio3d which you can find in
Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/R/r-other-bio3d/trunk/ When trying this d/watch file with uscan version: $ uscan --version | grep devscripts.*version This is uscan, from the Debian devscripts package, version 2.14.5~bpo70+2 I get the following results: $ uscan --verbose --force-download -- Scanning for watchfiles in . -- Found watchfile in ./debian -- In debian/watch, processing watchfile line: opts="uversionmangle=s/(\d+)-(.+)/$1.$2/" http://thegrantlab.org/bio3d/download/download-bucket .*bio3d-v([-.0-9]+) -- Found the following matching hrefs: /bio3d/download/download-bucket?download=1:bio3d-v2-0-1 (2.0-1) /bio3d/download/download-bucket?download=1:bio3d-v2-0-1 (2.0-1) Newest version on remote site is 2.0-1, local version is 2.0-1 => Package is up to date Newest version on remote site is 2.0-1, local version is 2.0-1 => Forcing download as requested -- Downloading updated package download-bucket -- Checking for common possible upstream OpenPGP signatures r-other-bio3d: Possible OpenPGP signature found at: http://thegrantlab.org/bio3d/download/download-bucket?download=1:bio3d-v2-0-1.asc. Please consider adding opts=pgpsigurlmangle=s/$/.asc/ to debian/watch. see uscan(1) for more details. Parameter ../download-bucket does not look like a tar archive or a zip file. at /usr/bin/mk-origtargz line 320. uscan: error: mk-origtargz --package r-other-bio3d --version 2.0-1 --compression gzip --directory .. --copyright-file debian/copyright ../download-bucket gave error exit status 255 It seems uscan is only respecting file names instead of using file to detect the content of a file. As far as I understood this should have been implemented with the latest change but I might be wrong here. This also does not change if I add the '--rename' option. When forcing a *.tar.gz extension to the download file via --- watch_plain 2014-07-01 07:12:22.000000000 +0000 +++ watch 2014-07-01 07:33:24.000000000 +0000 @@ -1,7 +1,8 @@ version=3 -opts="uversionmangle=s/(\d+)-(.+)/$1.$2/" \ +opts="uversionmangle=s/(\d+)-(.+)/$1.$2/,filenamemangle=s/^.*download-bucket/r-other-bio3d_version.tar.gz/" \ http://thegrantlab.org/bio3d/download/download-bucket \ .*bio3d-v([-.0-9]+) (hmmm, sorry folks this is a pure filenamemangle but I have no idea how to inject the version string here) I get: $ uscan --verbose --force-download -- Scanning for watchfiles in . -- Found watchfile in ./debian -- In debian/watch, processing watchfile line: opts="uversionmangle=s/(\d+)-(.+)/$1.$2/,filenamemangle=s/^.*download-bucket/r-other-bio3d_version.tar.gz/" http://thegrantlab.org/bio3d/download/download-bucket .*bio3d-v([-.0-9]+) -- Found the following matching hrefs: /bio3d/download/download-bucket?download=1:bio3d-v2-0-1 (2.0-1) /bio3d/download/download-bucket?download=1:bio3d-v2-0-1 (2.0-1) Newest version on remote site is 2.0-1, local version is 2.0-1 => Package is up to date Newest version on remote site is 2.0-1, local version is 2.0-1 => Forcing download as requested -- Downloading updated package r-other-bio3d_version.tar.gz -- Checking for common possible upstream OpenPGP signatures r-other-bio3d: Possible OpenPGP signature found at: http://thegrantlab.org/bio3d/download/download-bucket?download=1:bio3d-v2-0-1.asc. Please consider adding opts=pgpsigurlmangle=s/$/.asc/ to debian/watch. see uscan(1) for more details. -- Successfully downloaded updated package r-other-bio3d_version.tar.gz -- Successfully symlinked ../r-other-bio3d_version.tar.gz to ../r-other-bio3d_2.0-1.orig.tar.gz. -- Scan finished I guess this is a sign that `file` or some Perl equivalent to obtain the file content is not (yet ?) used. Kind regards Andreas. PS: Any hint for a better filenamemangle and also pgpsigurlmangle is welcome as well. -- http://fam-tille.de _______________________________________________ devscripts-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel
