Bug#840943: devscripts: Confusing warning message from uscan

2017-09-14 Thread Laurent Bigonville

found 840943 2.17.10
thanks

On Sun, 16 Oct 2016 13:46:14 +0200 Robert Luberda  wrote:
>
> Hi
>
> With the following watch file for my rlinetd package
>
> # control file for the uscan(1) tool
> version=4
> opts="pgpmode=next" http://alioth.debian.org/frs/?group_id=30928 \
> (?:.*)/@PACKAGE@@ANY_VERSION@@ARCHIVE_EXT@ debian
> opts="pgpmode=previous" http://alioth.debian.org/frs/?group_id=30928 \
> (?:.*)/@PACKAGE@@ANY_VERSION@@SIGNATURE_EXT@ previous
>
>
> uscan --verbose shows this:
>
> [ stripped some output ]
> uscan info: Matching target for downloadurlmangle:
> http://alioth.debian.org/frs/download.php/file/3966/rlinetd-0.9.tar.gz
> uscan info: Upstream URL (downloadurlmangled):
> http://alioth.debian.org/frs/download.php/file/3966/rlinetd-0.9.tar.gz
> uscan info: Newest upstream tarball version selected for download
> (uversionmangled): 0.9
> uscan info: Download filename (filenamemangled): rlinetd-0.9.tar.gz
> uscan info: Newest version of rlinetd on remote site is 0.9, local
> version is 0.9
> uscan info: => Package is up to date for from
> http://alioth.debian.org/frs/download.php/file/3966/rlinetd-0.9.tar.gz
> uscan info: opts: pgpmode=previous
> uscan info: line: http://alioth.debian.org/frs/?group_id=30928
> 
(?:.*)/rlinetd[-_]?(\d[\-+\.:\~\da-zA-Z]*)(?i)\.(?:tar\.xz|tar\.bz2|tar\.gz|zip)\.(?:asc|pgp|gpg|sig)

> previous
> uscan info: Parsing pgpmode=previous
> uscan info: line: http://alioth.debian.org/frs/?group_id=30928
> 
(?:.*)/rlinetd[-_]?(\d[\-+\.:\~\da-zA-Z]*)(?i)\.(?:tar\.xz|tar\.bz2|tar\.gz|zip)\.(?:asc|pgp|gpg|sig)

> previous
> uscan info: Last orig.tar.* tarball version (from debian/changelog):
> uscan warn: Unable to set versionmode=prev for the line without 
opts=pgpmode=prev

> in debian/watch, skipping:
> http://alioth.debian.org/frs/?group_id=30928
> 
(?:.*)/rlinetd[-_]?(\d[\-+\.:\~\da-zA-Z]*)(?i)\.(?:tar\.xz|tar\.bz2|tar\.gz|zip)\.(?:asc|pgp|gpg|sig) 
previous

> uscan info: Scan finished
>
>
> The `Unable to set versionmode=prev for the line without 
opts=pgpmode=prev'
> warning is really confusing, as it does not really says what is 
wrong, and

> what I as a user can do to get rid of it. Not to mention that it
> suggests replacing `pgpmode=previous' (taken from the man page) with
> `pgpmode=prev' in the watch file...
>
> It took me some time to discover that the warning really means that the
> locally downloaded version is just the same as the latest remote 
version...


This doesn't seems fixed in 2.17.10

I now get:

Use of uninitialized value $lastversion in concatenation (.) or string 
at /usr/bin/uscan line 2738,  line 7.
uscan warn: Unable to set versionmode=prev for the line without 
opts=pgpmode=prev

  in debian/watch, skipping:
  https://red.libssh.org/projects/libssh/files 
/attachments/download/(?:\d+)/libssh-[-_]?(\d[\-+\.:\~\da-zA-Z]*).tar.asc 
previous


There is an extra perl error here

(and the missmatch between pgpmode=prev and pgpmode=previous is still here)

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

Bug#840943: devscripts: Confusing warning message from uscan

2016-10-16 Thread Robert Luberda
Package: devscripts
Version: 2.16.8
Severity: normal


Hi

With the following watch file for my rlinetd package

  # control file for the uscan(1) tool
  version=4
  opts="pgpmode=next" http://alioth.debian.org/frs/?group_id=30928 \
  (?:.*)/@PACKAGE@@ANY_VERSION@@ARCHIVE_EXT@ debian
  opts="pgpmode=previous" http://alioth.debian.org/frs/?group_id=30928 \
  (?:.*)/@PACKAGE@@ANY_VERSION@@SIGNATURE_EXT@ previous


uscan --verbose shows this:

  [ stripped some output ]
  uscan info: Matching target for downloadurlmangle:
  http://alioth.debian.org/frs/download.php/file/3966/rlinetd-0.9.tar.gz
  uscan info: Upstream URL (downloadurlmangled):
 http://alioth.debian.org/frs/download.php/file/3966/rlinetd-0.9.tar.gz
  uscan info: Newest upstream tarball version selected for download
  (uversionmangled): 0.9
  uscan info: Download filename (filenamemangled): rlinetd-0.9.tar.gz
  uscan info: Newest version of rlinetd on remote site is 0.9, local
  version is 0.9
  uscan info:=> Package is up to date for from
http://alioth.debian.org/frs/download.php/file/3966/rlinetd-0.9.tar.gz
  uscan info: opts: pgpmode=previous
  uscan info: line: http://alioth.debian.org/frs/?group_id=30928
  
(?:.*)/rlinetd[-_]?(\d[\-+\.:\~\da-zA-Z]*)(?i)\.(?:tar\.xz|tar\.bz2|tar\.gz|zip)\.(?:asc|pgp|gpg|sig)
  previous
  uscan info: Parsing pgpmode=previous
  uscan info: line: http://alioth.debian.org/frs/?group_id=30928
  
(?:.*)/rlinetd[-_]?(\d[\-+\.:\~\da-zA-Z]*)(?i)\.(?:tar\.xz|tar\.bz2|tar\.gz|zip)\.(?:asc|pgp|gpg|sig)
  previous
  uscan info: Last orig.tar.* tarball version (from debian/changelog): 
  uscan warn: Unable to set versionmode=prev for the line without 
opts=pgpmode=prev
in debian/watch, skipping:
http://alioth.debian.org/frs/?group_id=30928
  
(?:.*)/rlinetd[-_]?(\d[\-+\.:\~\da-zA-Z]*)(?i)\.(?:tar\.xz|tar\.bz2|tar\.gz|zip)\.(?:asc|pgp|gpg|sig)
 previous
  uscan info: Scan finished


The `Unable to set versionmode=prev for the line without opts=pgpmode=prev' 
warning is really confusing, as it does not really says what is wrong, and 
what I as a user can do to get rid of it. Not to mention that it
suggests replacing `pgpmode=previous' (taken from the man page) with 
`pgpmode=prev' in the watch file...

It took me some time to discover that the warning really means that the
locally downloaded version is just the same as the latest remote version...

Regards,
robert



-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (200, 'testing')
Architecture: i386 (i686)

Kernel: Linux 4.7.0-1-686-pae (SMP w/1 CPU core)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages devscripts depends on:
ii  dpkg-dev 1.18.10
ii  libc62.24-3
ii  perl 5.24.1~rc3-3
pn  python3:any  

Versions of packages devscripts recommends:
ii  apt 1.3.1
ii  at  3.1.20-1
ii  curl7.50.1-1
ii  dctrl-tools 2.24-2
ii  debian-keyring  2016.09.04
ii  dput0.10.3
ii  dupload 2.7.0
ii  equivs  2.0.9+nmu1
ii  fakeroot1.21-2
ii  file1:5.28-4
ii  gnupg   2.1.15-4
ii  gnupg2  2.1.15-4
pn  libdistro-info-perl 
ii  libencode-locale-perl   1.05-1
ii  liblwp-protocol-https-perl  6.06-2
ii  libsoap-lite-perl   1.20-1
ii  liburi-perl 1.71-1
ii  libwww-perl 6.15-1
ii  licensecheck3.0.24-1
ii  lintian 2.5.48
ii  man-db  2.7.5-1
ii  patch   2.7.5-1
ii  patchutils  0.3.4-1
ii  python3-debian  0.1.29
pn  python3-magic   
ii  sensible-utils  0.0.9
ii  strace  4.13-0.1
ii  unzip   6.0-20
ii  wdiff   1.2.2-1+b1
ii  wget1.18-4
ii  xz-utils5.2.2-1.2

Versions of packages devscripts suggests:
pn  adequate 
pn  autopkgtest  
pn  bls-standalone   
ii  bsd-mailx [mailx]8.1.2-0.20160123cvs-3
ii  build-essential  12.2
pn  check-all-the-things 
pn  cvs-buildpackage 
pn  devscripts-el
pn  diffoscope   
pn  disorderfs   
pn  dose-extra   
ii  duck 0.10
ii  faketime 0.9.6-7
ii  gnuplot  5.0.4+dfsg1-3
ii  gpgv 2.1.15-4
pn  how-can-i-help   
ii  libauthen-sasl-perl  2.1600-1
ii  libfile-desktopentry-perl0.22-1
ii  libnet-smtp-ssl-perl 1.03-1
ii  libterm-size-perl0.207-1+b4
ii  libtimedate