Bug#910910: uscan: uninitialized value $lastversion in concatenation + error

2018-10-13 Thread Xavier
Control: found -1 2.17.6

Le 13/10/2018 à 12:18, Mattia Rizzolo a écrit :
> Package: devscripts
> Version: 2.18.6
> Severity: important
> User: devscri...@packages.debian.org
> Usertas: uscan
> 
> using the watchfile:
> 
> ~~
> version=4
> 
> # main tarball
> opts="\
> uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)[\-\.]?\d*)$/$1~$2/,
>  \
> dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//, \
> pgpmode=next" \
> https://launchpad.net/inkscape/+download \
> (?:.*/)?inkscape[_\-\.]?(\d\S+)\.(?:tgz|txz|tar\.(?:bz2|gz|z2|xz)) debian
> 
> # find the signature
> opts=pgpmode=previous \
> https://launchpad.net/inkscape/+download \
> (?:.*/)?inkscape[_\-\.]?(\d\S+)\.(?:tgz|txz|tar\.(?:bz2|gz|z2|xz)).(?:asc|pgp|gpg|sig)
>  previous
> ~
> 
> I get:
> 
> mattia@warren ~/devel/debian/inkscape/inkscape (git)-[master] % uscan --report
> uscan warn: Unable to set versionmode=prev for the line without 
> opts=pgpmode=prev
>   in debian/watch, skipping:
>   https://launchpad.net/inkscape/+download 
> (?:.*/)?inkscape[_\-\.]?(\d\S+)\.(?:tgz|txz|tar\.(?:bz2|gz|z2|xz)).(?:asc|pgp|gpg|sig)
>  previous [Devscripts::Uscan::WatchLine: 773]
> uscan info: Scan finished
> 1 mattia@warren ~/devel/debian/inkscape/inkscape (git)-[master] %
> 
> Note the "Use of uninitialized value" message, and how the second
> WatchLine actually failed to be parsed.
> 
> I think I can nowadays redo this watchfile using pgpmode=auto (wasn't
> there when I wrote this watcfile), but still :)

Hello,

same behavior with 2.17.6 (stable) except $lastversion warning which
comes with 2.18.1. Previous versions not tested due to dependencies.



Bug#910910: uscan: uninitialized value $lastversion in concatenation + error

2018-10-13 Thread Mattia Rizzolo
Package: devscripts
Version: 2.18.6
Severity: important
User: devscri...@packages.debian.org
Usertas: uscan

using the watchfile:

~~
version=4

# main tarball
opts="\
uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)[\-\.]?\d*)$/$1~$2/,
 \
dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//, \
pgpmode=next" \
https://launchpad.net/inkscape/+download \
(?:.*/)?inkscape[_\-\.]?(\d\S+)\.(?:tgz|txz|tar\.(?:bz2|gz|z2|xz)) debian

# find the signature
opts=pgpmode=previous \
https://launchpad.net/inkscape/+download \
(?:.*/)?inkscape[_\-\.]?(\d\S+)\.(?:tgz|txz|tar\.(?:bz2|gz|z2|xz)).(?:asc|pgp|gpg|sig)
 previous
~

I get:

mattia@warren ~/devel/debian/inkscape/inkscape (git)-[master] % uscan --report
uscan info: The directory to store downloaded files($destdir): ..
uscan info: uscan (version 2.18.6) See uscan(1) for help
uscan info: Scan watch files in .

uscan info: opts: 
uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)[\-\.]?\d*)$/$1~$2/,
 dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//, pgpmode=next
uscan info: line: https://launchpad.net/inkscape/+download 
(?:.*/)?inkscape[_\-\.]?(\d\S+)\.(?:tgz|txz|tar\.(?:bz2|gz|z2|xz)) debian
uscan info: Parsing 
uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)[\-\.]?\d*)$/$1~$2/
uscan info: Parsing  dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//
uscan info: Parsing  pgpmode=next
uscan info: line: https://launchpad.net/inkscape/+download 
(?:.*/)?inkscape[_\-\.]?(\d\S+)\.(?:tgz|txz|tar\.(?:bz2|gz|z2|xz)) debian
uscan info: Last orig.tar.* tarball version (from debian/changelog): 0.92.3
uscan info: Last orig.tar.* tarball version (dversionmangled): 0.92.3
...
uscan info: Filename (filenamemangled) for downloaded file: 
inkscape-0.92.3.tar.bz2
uscan info: Newest version of inkscape on remote site is 0.92.3, local version 
is 0.92.3
uscan info:=> Package is up to date for from
  
https://launchpad.net/inkscape/0.92.x/0.92.3/+download/inkscape-0.92.3.tar.bz2
uscan info: opts: pgpmode=previous
uscan info: line: https://launchpad.net/inkscape/+download 
(?:.*/)?inkscape[_\-\.]?(\d\S+)\.(?:tgz|txz|tar\.(?:bz2|gz|z2|xz)).(?:asc|pgp|gpg|sig)
 previous
uscan info: Parsing pgpmode=previous
uscan info: line: https://launchpad.net/inkscape/+download 
(?:.*/)?inkscape[_\-\.]?(\d\S+)\.(?:tgz|txz|tar\.(?:bz2|gz|z2|xz)).(?:asc|pgp|gpg|sig)
 previous
Use of uninitialized value $lastversion in concatenation (.) or string at 
/usr/share/perl5/Devscripts/Uscan/WatchLine.pm line 715.
uscan info: Previous version downloaded:
uscan warn: Unable to set versionmode=prev for the line without 
opts=pgpmode=prev
  in debian/watch, skipping:
  https://launchpad.net/inkscape/+download 
(?:.*/)?inkscape[_\-\.]?(\d\S+)\.(?:tgz|txz|tar\.(?:bz2|gz|z2|xz)).(?:asc|pgp|gpg|sig)
 previous [Devscripts::Uscan::WatchLine: 773]
uscan info: Scan finished
1 mattia@warren ~/devel/debian/inkscape/inkscape (git)-[master] %



Note the "Use of uninitialized value" message, and how the second
WatchLine actually failed to be parsed.

I think I can nowadays redo this watchfile using pgpmode=auto (wasn't
there when I wrote this watcfile), but still :)

-- 
regards,
Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540  .''`.
more about me:  https://mapreri.org : :'  :
Launchpad user: https://launchpad.net/~mapreri  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-


signature.asc
Description: PGP signature