Package: devscripts
Version: 2.10.65.1
Severity: normal
Tags: patch

Hi

Since the recent dpkg update, uscan reports now (here an example with
nfwatch):

[~/checkouts/git/mypackages/nfswatch]: uscan --report
dpkg: version ''4.99.11'' has bad syntax: invalid character in version number
Processing watchfile line for package nfswatch...
Newest version on remote site is 4.99.11, local version is 4.99.11
dpkg: version ''4.99.11'' has bad syntax: invalid character in version number
nfswatch: Newer version (4.99.11) available on remote site:
  http://qa.debian.org/watch/sf.php/nfswatch/nfswatch-4.99.11.tar.gz
  (local version is 4.99.11)

Looking at uscan.pl, removing the quotes for the versionnumbers, the
problem dissapear.

Bests
Salvatore

-- Package-specific info:

--- /etc/devscripts.conf ---

--- ~/.devscripts ---

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages devscripts depends on:
ii  dpkg-dev                      1.15.8.1   Debian package development tools
ii  libc6                         2.11.2-2   Embedded GNU C Library: Shared lib
ii  perl                          5.10.1-13  Larry Wall's Practical Extraction 

Versions of packages devscripts recommends:
ii  at                3.1.12-1               Delayed job execution and batch pr
ii  curl              7.21.0-1               Get a file from an HTTP, HTTPS or 
ii  cvs               1:1.12.13-12           Concurrent Versions System
ii  dctrl-tools       2.14                   Command-line tools to process Debi
ii  debian-keyring [d 2010.06.08             GnuPG (and obsolete PGP) keys of D
ii  dput              0.9.6.1                Debian package upload tool
ii  dupload           2.6.6                  utility to upload Debian packages
ii  equivs            2.0.8                  Circumvent Debian package dependen
ii  fakeroot          1.14.4-1               Gives a fake root environment
ii  git [git-core]    1:1.7.1-1.1            fast, scalable, distributed revisi
ii  git-core          1:1.7.1-1.1            fast, scalable, distributed revisi
ii  gnupg             1.4.10-4               GNU privacy guard - a free PGP rep
ii  heirloom-mailx [m 12.4-2                 feature-rich BSD mail(1)
ii  libauthen-sasl-pe 2.1500-1               Authen::SASL - SASL Authentication
ii  libcrypt-ssleay-p 0.57-2                 Support for https protocol in LWP
pn  libjson-perl      <none>                 (no description available)
ii  libparse-debcontr 2.005-2                Easy OO parsing of Debian control-
ii  libsoap-lite-perl 0.712-1                Perl implementation of a SOAP clie
ii  libterm-size-perl 0.2-4+b1               Perl extension for retrieving term
ii  libtimedate-perl  1.2000-1               collection of modules to manipulat
ii  liburi-perl       1.54-1                 module to manipulate and access UR
ii  libwww-perl       5.836-1                Perl HTTP/WWW client/server librar
ii  libyaml-syck-perl 1.09-1                 Perl module providing a fast, ligh
ii  lintian           2.4.3                  Debian package checker
ii  lsb-release       3.2-23.1               Linux Standard Base version report
ii  lzma              4.43-14                Compression method of 7z format in
ii  man-db            2.5.7-3                on-line manual pager
ii  openssh-client [s 1:5.5p1-4              secure shell (SSH) client, for sec
ii  patch             2.6-2                  Apply a diff file to an original
ii  patchutils        0.3.1-2                Utilities to work with patches
ii  sensible-utils    0.0.4                  Utilities for sensible alternative
ii  strace            4.5.20-2               A system call tracer
ii  subversion        1.6.12dfsg-1           Advanced version control system
ii  unzip             6.0-4                  De-archiver for .zip files
ii  wdiff             0.6.3-1                Compares two files word by word
ii  wget              1.12-2                 retrieves files from the web
pn  www-browser       <none>                 (no description available)
ii  xz-utils          4.999.9beta+20100713-1 XZ-format compression utilities

Versions of packages devscripts suggests:
ii  build-essential               11.5       Informational list of build-essent
pn  cvs-buildpackage              <none>     (no description available)
pn  devscripts-el                 <none>     (no description available)
pn  gnuplot                       <none>     (no description available)
pn  libfile-desktopentry-perl     <none>     (no description available)
pn  libnet-smtp-ssl-perl          <none>     (no description available)
pn  mutt                          <none>     (no description available)
ii  svn-buildpackage              0.8.1      helper programs to maintain Debian
pn  w3m                           <none>     (no description available)

-- no debconf information
diff -urN devscripts-2.10.65.1.orig//scripts/uscan.pl devscripts-2.10.65.1/scripts/uscan.pl
--- devscripts-2.10.65.1.orig//scripts/uscan.pl	2010-07-14 02:10:24.000000000 +0200
+++ devscripts-2.10.65.1/scripts/uscan.pl	2010-07-30 09:25:06.505527790 +0200
@@ -1194,7 +1194,7 @@
 
     # Can't just use $lastversion eq $newversion, as then 0.01 and 0.1
     # compare different, whereas they are treated as equal by dpkg
-    if (system("dpkg", "--compare-versions", "'$mangled_lastversion'", "eq", "'$newversion'") == 0) {
+    if (system("dpkg", "--compare-versions", "$mangled_lastversion", "eq", "$newversion") == 0) {
 	if ($verbose or ($download == 0 and $report and ! $dehs)) {
 	    print $pkg_report_header;
 	    $pkg_report_header = '';
@@ -1221,7 +1221,7 @@
     # We use dpkg's rules to determine whether our current version
     # is newer or older than the remote version.
     if (!defined $download_version) {
-	if (system("dpkg", "--compare-versions", "'$mangled_lastversion'", "gt", "'$newversion'") == 0) {
+	if (system("dpkg", "--compare-versions", "$mangled_lastversion", "gt", "$newversion") == 0) {
 	    if ($verbose) {
 		print " => remote site does not even have current version\n";
 	    } elsif ($dehs) {

Reply via email to