RE:watch file with multiple download url
> uscan works out of the box with both URLs as far as I can tell.
you I uncomment everythongs and uscan check at bothe URL compares the version and at the end download the most recent package from the right URL ?
ok, I uncomment both URL and now I get this
version=4
opts=dversionmangle=s/\+dfsg\d*$//,repacksuffix=+dfsg1 \
http://sf.net/tango-cs/tango-(\d\S*)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) debian uupdate
opts=dversionmangle=s/\+dfsg\d*$//,repacksuffix=+dfsg1 \
ftp://ftp.esrf.eu/pub/cs/tango/tango-(\d\S*)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) debian uupdate
picca@mordor:~/Debian/tango/tango$ uscan --verbose
uscan info: uscan (version 2.17.0) See uscan(1) for help
uscan info: Scan watch files in .
uscan info: Check debian/watch and debian/changelog in .
uscan info: package="tango" version="9.2.5a+dfsg1-2" (as seen in debian/changelog)
uscan info: package="tango" version="9.2.5a+dfsg1" (no epoch/revision)
uscan info: Check debian/watch and debian/changelog in ./.git/refs/tags
uscan info: ./debian/changelog sets package="tango" version="9.2.5a+dfsg1"
uscan info: Process ./debian/watch (package=tango version=9.2.5a+dfsg1)
uscan info: opts: dversionmangle=s/\+dfsg\d*$//,repacksuffix=+dfsg1
uscan info: line: http://sf.net/tango-cs/tango-(\d\S*)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) debian uupdate
uscan info: Parsing dversionmangle=s/\+dfsg\d*$//
uscan info: Parsing repacksuffix=+dfsg1
uscan info: line: http://sf.net/tango-cs/tango-(\d\S*)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) debian uupdate
uscan info: sf.net redirection to qa.debian.org/watch/sf.php
uscan info: Last orig.tar.* tarball version (from debian/changelog): 9.2.5a+dfsg1
uscan info: Last orig.tar.* tarball version (dversionmangled): 9.2.5a
uscan info: Requesting URL:
https://qa.debian.org/watch/sf.php/tango-cs/
uscan info: Matching pattern:
(?:(?:https://qa.debian.org)?\/watch\/sf\.php\/tango\-cs\/)?tango-(\d\S*)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))(?:\?.*)?
uscan info: Found the following matching hrefs on the web page (newest first):
/watch/sf.php/tango-cs/tango-9.2.5a.tar.gz (9.2.5a) index=9.2.5a-1
/watch/sf.php/tango-cs/tango-9.2.5a.tar.gz (9.2.5a) index=9.2.5a-1
/watch/sf.php/tango-cs/tango-9.2.2.tar.gz (9.2.2) index=9.2.2-1
/watch/sf.php/tango-cs/tango-9.2.2.tar.gz (9.2.2) index=9.2.2-1
/watch/sf.php/tango-cs/tango-9.2.1.tar.gz (9.2.1) index=9.2.1-1
/watch/sf.php/tango-cs/tango-9.2.1.tar.gz (9.2.1) index=9.2.1-1
/watch/sf.php/tango-cs/tango-8.1.2c-patched.tar.gz (8.1.2c-patched) index=8.1.2c-patched-1
/watch/sf.php/tango-cs/tango-8.1.2c.tar.gz (8.1.2c) index=8.1.2c-1
/watch/sf.php/tango-cs/tango-8.0.5.tar.gz (8.0.5) index=8.0.5-1
uscan info: Matching target for downloadurlmangle: https://qa.debian.org/watch/sf.php/tango-cs/tango-9.2.5a.tar.gz
uscan info: Upstream URL (downloadurlmangled):
https://qa.debian.org/watch/sf.php/tango-cs/tango-9.2.5a.tar.gz
uscan info: Newest upstream tarball version selected for download (uversionmangled): 9.2.5a
uscan info: Download filename (filenamemangled): tango-9.2.5a.tar.gz
uscan info: Newest version of tango on remote site is 9.2.5a, local version is 9.2.5a+dfsg1
(mangled local version is 9.2.5a)
uscan info: => Package is up to date for from
https://qa.debian.org/watch/sf.php/tango-cs/tango-9.2.5a.tar.gz
uscan info: opts: dversionmangle=s/\+dfsg\d*$//,repacksuffix=+dfsg1
uscan info: line: ftp://ftp.esrf.eu/pub/cs/tango/tango-(\d\S*)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) debian uupdate
uscan info: Parsing dversionmangle=s/\+dfsg\d*$//
uscan info: Parsing repacksuffix=+dfsg1
uscan info: line: ftp://ftp.esrf.eu/pub/cs/tango/tango-(\d\S*)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) debian uupdate
uscan warn: more than one main upstream tarballs listed.
uscan info: Last orig.tar.* tarball version (from debian/changelog): 9.2.5a+dfsg1
uscan info: Last orig.tar.* tarball version (dversionmangled): 9.2.5a
uscan info: Requesting URL:
ftp://ftp.esrf.eu/pub/cs/tango/
uscan info: matching pattern (?:(?:ftp://ftp.esrf.eu)?\/pub\/cs\/tango\/)?tango-(\d\S*)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
uscan info: Standard FTP listing.
uscan info: Found the following matching files on the web page (newest first):
tango-9.2.5-rc2.tar.gz (9.2.5-rc2) index=9.2.5-rc2-1
tango-9.2.5-rc1.tar.gz (9.2.5-rc1) index=9.2.5-rc1-1
tango-9.2.5a.tar.gz (9.2.5a) index=9.2.5a-1
tango-9.2.2.tar.gz (9.2.2) index=9.2.2-1
tango-9.1.0.tar.gz (9.1.0) index=9.1.0-1
tango-8.1.2c.tar.gz (8.1.2c) index=8.1.2c-1
tango-8.1.2b.tar.gz (8.1.2b) index=8.1.2b-1
tango-8.1.2a.tar.gz (8.1.2a) index=8.1.2a-1
tango-8.1.2.tar.gz (8.1.2) index=8.1.2-1
tango-8.0.5.tar.gz (8.0.5) index=8.0.5-1
tango-7.2.6-svn-17100-win-x64-msvc-2010.zip (7.2.6-svn-17100-win-x64-msvc-2010) index=7.2.6-svn-17100-win-x64-msvc-2010-0
tango-7.2.6a.tar.gz (7.2.6a) index=7.2.6a-1
tango-7.2.6.tar.gz (7.2.6) index=7.2.6-1
tango-7.2.1a.tar.gz (7.2.1a) index=7.2.1a-1
tango-7.2.1.tar.gz (7.2.1) index=7.2.1-1
tango-7.2.0.tar.gz (7.2.0) index=7.2.0-1
tango-7.1.1.tar.gz (7.1.1) index=7.1.1-1
tango-7.0.2.tar.gz (7.0.2) index=7.0.2-1
uscan info: Upstream URL (downloadurlmangled):
ftp://ftp.esrf.eu/pub/cs/tango/tango-9.2.5-rc2.tar.gz
uscan info: Newest upstream tarball version selected for download (uversionmangled): 9.2.5-rc2
uscan info: Download filename (filenamemangled): tango-9.2.5-rc2.tar.gz
uscan: Newest version of tango on remote site is 9.2.5-rc2, local version is 9.2.5a+dfsg1
(mangled local version is 9.2.5a)
uscan: => Newer package available from
ftp://ftp.esrf.eu/pub/cs/tango/tango-9.2.5-rc2.tar.gz
uscan info: Scan finished
so it seems that I have a problem with the upstream versionning
tango-9.2.5-rc2.tar.gz (9.2.5-rc2) index=9.2.5-rc2-1
tango-9.2.5-rc1.tar.gz (9.2.5-rc1) index=9.2.5-rc1-1
tango-9.2.5a.tar.gz (9.2.5a) index=9.2.5a-1
the final release is tango-9.2.5a whcih is considere lower than tango-9.2.5-rcx
how should I change my watch file to take this into account.
Usually the final releases are x.y.z[abc...]
thanks for your help
Frederic
Reply to: