Need help for watch file
Hi,
to enable properly downloading the volview sources I tried the following
watch file:
version=3
opts=\
dversionmangle=s/[~\+]dfsg//,\
downloadurlmangle=s/VolView-([\d\.]+)-Linux-x86_64.sh/VolViewSrc.tar.gz/,\
filenamemangle=s/VolView(-[\d\.]+)-Linux-x86_64.sh/VolViewSrc$1.tar.gz/ \
http://www.kitware.com/products/vvdownload.html \
http://www.kitware.com/VolView/files/VolView-([\d\.]+)-Linux-x86_64.sh
$ /usr/bin/uscan --verbose --force-download
-- Scanning for watchfiles in .
-- Found watchfile in ./debian
-- In debian/watch, processing watchfile line:
opts=dversionmangle=s/[~\+]dfsg//,downloadurlmangle=s/VolView-([\d\.]+)-Linux-x86_64.sh/VolViewSrc.tar.gz/,filenamemangle=s/VolView(-[\d\.]+)-Linux-x86_64.sh/VolViewSrc$1.tar.gz/ http://www.kitware.com/products/vvdownload.html http://www.kitware.com/VolView/files/VolView-([\d\.]+)-Linux-x86_64.sh
-- Found the following matching hrefs:
http://www.kitware.com/VolView/files/VolView-3.4-Linux-x86_64.sh
http://www.kitware.com/VolView/files/VolView-3.4-Linux-x86_64.sh
http://www.kitware.com/VolView/files/VolView-3.4-Linux-x86_64.sh
Newest version on remote site is 3.4, local version is 3.4+dfsg
(mangled local version number 3.4)
=> Package is up to date
Newest version on remote site is 3.4, local version is 3.4+dfsg
(mangled local version number 3.4)
=> Forcing download as requested
-- Downloading updated package http://www.kitware.com/VolView/files/VolViewSrc-3.4.tar.gz
uscan warning: ../http://www.kitware.com/VolView/files/VolViewSrc-3.4.tar.gz does not appear to be a compressed file;
the file command says: ERROR: cannot open `../http://www.kitware.com/VolView/files/VolViewSrc-3.4.tar.gz' (No such file or directory)
Not processing this file any further!
-- Scan finished
If I leave out the filenamemangle option the correct file is downloaded
- but it is named *.sh which is a bit stupid for a tar.gz. Any hint
(besides bothering upstream ... somebody from kitware in CC - Luis it
would help if you could care for a properly numbered downloadable tarball.)
Kind regards
Andreas.
--
http://fam-tille.de
Reply to: