Bug#792025: [uscan] Doesn't strip terminal download.html, fails fetching .../download.html/download/...

Barak A. Pearlmutter barak at pearlmutter.net
Fri Jul 10 11:05:30 UTC 2015


Package: devscripts:
Version: 2.15.5

The below seemingly-standard debian/watch file fails.

----------------------------------------------------------------

$ cat debian/watch
version=3
https://www.fossil-scm.org/download.html \
 .*/fossil-src-(\d*\.\d*)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

$ uscan --verbose
-- Scanning for watchfiles in .
-- Found watchfile in ./debian
-- In debian/watch, processing watchfile line:
   https://www.fossil-scm.org/download.html  .*/fossil-src-(\d*\.\d*)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
-- Found the following matching hrefs:
     download/fossil-src-1.33.tar.gz (1.33)
     download/fossil-src-1.32.tar.gz (1.32)
Newest version on remote site is 1.33, local version is 1.29
 => Newer version available from
    https://www.fossil-scm.org/download.html/download/fossil-src-1.33.tar.gz
-- Downloading updated package fossil-src-1.33.tar.gz
uscan warning: In directory ., downloading
  https://www.fossil-scm.org/download.html/download/fossil-src-1.33.tar.gz failed: 404 Not Found
-- Scan finished

----------------------------------------------------------------

Note the URL it tries to fetch is
https://www.fossil-scm.org/download.html/download/fossil-src-1.33.tar.gz
which does not have the "download.html" stripped out.  The URL looks
fine in a browser, and (as also shown in the above transcript) the
page source reads href="download/fossil-src-..."

Mystified!

					Cheers,

					--Barak.
--
Barak A. Pearlmutter <barak at pearlmutter.net>
 Dept Comp Sci & Hamilton Institute, Maynooth University, Co. Kildare, Ireland
 http://barak.pearlmutter.net



More information about the devscripts-devel mailing list