Package: devscripts
Version: 2.17.12
Severity: normal

Hi,

The following watch file which uses the "same" version mode does not
work when --download-current-version is specified. It does work on a
normal uscan invocation however (eg with --force-download).

(at the time the version in debian/changelog was "2.1-1")

> $ cat debian/watch 
> version=4
> opts="dversionmangle=s/\+dfsg\d*$//,uversionmangle=s/\.2014\.0209//,oversionmangle=s/$/+dfsg/"
>  \
>  
> https://download.tuxfamily.org/ffdiaporama/Packages/Stable/ffdiaporama_bin_@ANY_VERSION@@ARCHIVE_EXT@
> opts="dversionmangle=s/\+dfsg\d*$//,uversionmangle=s/\.2014\.0209//,oversionmangle=s/$/+dfsg/,component=rsc"
>  \
>  
> https://download.tuxfamily.org/ffdiaporama/Packages/Stable/ffdiaporama_rsc_@ANY_VERSION@@ARCHIVE_EXT@
>  same
> $ uscan --verbose --download-current-version
> uscan info: uscan (version 2.17.12) See uscan(1) for help
> uscan info: Scan watch files in .
> uscan info: Check debian/watch and debian/changelog in .
> uscan info: package="ffdiaporama" version="2.1-1" (as seen in 
> debian/changelog)
> uscan info: package="ffdiaporama" version="2.1" (no epoch/revision)
> uscan info: ./debian/changelog sets package="ffdiaporama" version="2.1"
> uscan info: Process ./debian/watch (package=ffdiaporama version=2.1)
> uscan info: opts: 
> dversionmangle=s/\+dfsg\d*$//,uversionmangle=s/\.2014\.0209//,oversionmangle=s/$/+dfsg/
> uscan info: line: 
> https://download.tuxfamily.org/ffdiaporama/Packages/Stable/ffdiaporama_bin_[-_]?(\d[\-+\.:\~\da-zA-Z]*)(?i)\.(?:tar\.xz|tar\.bz2|tar\.gz|zip)
> uscan info: Parsing dversionmangle=s/\+dfsg\d*$//
> uscan info: Parsing uversionmangle=s/\.2014\.0209//
> uscan info: Parsing oversionmangle=s/$/+dfsg/
> uscan info: line: 
> https://download.tuxfamily.org/ffdiaporama/Packages/Stable/ffdiaporama_bin_[-_]?(\d[\-+\.:\~\da-zA-Z]*)(?i)\.(?:tar\.xz|tar\.bz2|tar\.gz|zip)
> uscan info: Last orig.tar.* tarball version (from debian/changelog): 2.1
> uscan info: Download the --download-current-version specified version: 2.1
> uscan info: Requesting URL:
>    https://download.tuxfamily.org/ffdiaporama/Packages/Stable/
> uscan info: Matching pattern:
>    
> (?:(?:https://download.tuxfamily.org)?\/ffdiaporama\/Packages\/Stable\/)?ffdiaporama_bin_[-_]?(\d[\-+\.:\~\da-zA-Z]*)(?i)\.(?:tar\.xz|tar\.bz2|tar\.gz|zip)
> uscan info: Found the following matching hrefs on the web page (newest first):
>    ffdiaporama_bin_2.1.2014.0209.tar.gz (2.1) index=2.1-1 matched with the 
> download version
> uscan info: Matching target for downloadurlmangle: 
> https://download.tuxfamily.org/ffdiaporama/Packages/Stable/ffdiaporama_bin_2.1.2014.0209.tar.gz
> uscan info: Upstream URL (downloadurlmangled):
>    
> https://download.tuxfamily.org/ffdiaporama/Packages/Stable/ffdiaporama_bin_2.1.2014.0209.tar.gz
> uscan info: Newest upstream tarball version selected for download 
> (uversionmangled): 2.1
> uscan info: Download filename (filenamemangled): 
> ffdiaporama_bin_2.1.2014.0209.tar.gz
> uscan: Newest version of ffdiaporama on remote site is 2.1, specified 
> download version is 2.1
> uscan info: Downloading upstream package: ffdiaporama_bin_2.1.2014.0209.tar.gz
> uscan info: Requesting URL:
>    
> https://download.tuxfamily.org/ffdiaporama/Packages/Stable/ffdiaporama_bin_2.1.2014.0209.tar.gz
> uscan info: Successfully downloaded package: 
> ffdiaporama_bin_2.1.2014.0209.tar.gz
> uscan info: Start checking for common possible upstream OpenPGP signature 
> files
> uscan info: End checking for common possible upstream OpenPGP signature files
> uscan info: Missing OpenPGP signature.
> uscan info: New orig.tar.* tarball version (oversionmangled): 2.1+dfsg
> uscan info: Executing internal command:
>    mk-origtargz --package ffdiaporama --version 2.1+dfsg --compression gzip 
> --directory .. --copyright-file debian/copyright 
> ../ffdiaporama_bin_2.1.2014.0209.tar.gz
> uscan info: New orig.tar.* tarball version (after mk-origtargz): 2.1+dfsg
> uscan info: Successfully symlinked ../ffdiaporama_bin_2.1.2014.0209.tar.gz to 
> ../ffdiaporama_2.1+dfsg.orig.tar.gz.
> uscan info: opts: 
> dversionmangle=s/\+dfsg\d*$//,uversionmangle=s/\.2014\.0209//,oversionmangle=s/$/+dfsg/,component=rsc
> uscan info: line: 
> https://download.tuxfamily.org/ffdiaporama/Packages/Stable/ffdiaporama_rsc_[-_]?(\d[\-+\.:\~\da-zA-Z]*)(?i)\.(?:tar\.xz|tar\.bz2|tar\.gz|zip)
>  same
> uscan info: Parsing dversionmangle=s/\+dfsg\d*$//
> uscan info: Parsing uversionmangle=s/\.2014\.0209//
> uscan info: Parsing oversionmangle=s/$/+dfsg/
> uscan info: Parsing component=rsc
> uscan info: line: 
> https://download.tuxfamily.org/ffdiaporama/Packages/Stable/ffdiaporama_rsc_[-_]?(\d[\-+\.:\~\da-zA-Z]*)(?i)\.(?:tar\.xz|tar\.bz2|tar\.gz|zip)
>  same
> uscan info: Last orig.tar.* tarball version (from debian/changelog): 
> uscan info: Download the --download-current-version specified version: 
> uscan info: Requesting URL:
>    https://download.tuxfamily.org/ffdiaporama/Packages/Stable/
> uscan info: Matching pattern:
>    
> (?:(?:https://download.tuxfamily.org)?\/ffdiaporama\/Packages\/Stable\/)?ffdiaporama_rsc_[-_]?(\d[\-+\.:\~\da-zA-Z]*)(?i)\.(?:tar\.xz|tar\.bz2|tar\.gz|zip)
> uscan info: Found the following matching hrefs on the web page (newest first):
>    ffdiaporama_rsc_2.1.2014.0209.tar.gz (2.1) index=2.1-1 
> uscan warn: In debian/watch no matching hrefs for version  in watch line
>   
> https://download.tuxfamily.org/ffdiaporama/Packages/Stable/ffdiaporama_rsc_[-_]?(\d[\-+\.:\~\da-zA-Z]*)(?i)\.(?:tar\.xz|tar\.bz2|tar\.gz|zip)
>  same
> uscan info: Scan finished

From the last few lines, it looks like uscan is trying to download the
"empty" version which of course does not exist.

Thanks,
James

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
devscripts-devel mailing list
devscripts-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel

Reply via email to