Your message dated Tue, 19 Apr 2011 23:46:58 -0400
with message-id <[email protected]>
and subject line Re: Bug#575864: devscripts: [uscan] --report-scan returns 
error code of 1 if package is up-to-date.
has caused the Debian Bug report #575864,
regarding [uscan] --report-scan exits 1 if package is up-to-date
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
575864: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=575864
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: devscripts
Version: 2.10.61
Severity: normal


I believe uscan should return an error code of zero in the following case:

   $ uscan --report-status --watchfile debian/watch
   Processing watchfile line for package haskell-unixutils...
   Newest version on remote site is 1.22, local version is 1.22
    => Package is up to date
   $ echo $?
   1

and should only return 1 if the remotce version is not the same as the local
version.

Patch to fix this attached.



-- Package-specific info:

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

--- ~/.devscripts ---
Not present

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

Kernel: Linux 2.6.28-18-generic (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to 
POSIX)
Shell: /bin/sh linked to /bin/dash

Versions of packages devscripts depends on:
ii  dpkg-dev                      1.15.5.6   Debian package development tools
ii  libc6                         2.10.2-6   Embedded GNU C Library: Shared lib
ii  perl                          5.10.1-11  Larry Wall's Practical Extraction 

Versions of packages devscripts recommends:
ii  at                     3.1.12-1          Delayed job execution and batch pr
ii  conkeror [www-browser] 0.9.2+git100324-2 keyboard focused web browser with 
ii  cvs                    1:1.12.13-12      Concurrent Versions System
ii  dctrl-tools            2.14              Command-line tools to process Debi
ii  debian-keyring [debian 2009.11.04        GnuPG (and obsolete PGP) keys of D
ii  dput                   0.9.5.1           Debian package upload tool
ii  equivs                 2.0.8             Circumvent Debian package dependen
ii  fakeroot               1.14.4-1          Gives a fake root environment
ii  gnupg                  1.4.10-3          GNU privacy guard - a free PGP rep
ii  heirloom-mailx [mailx] 12.4-1.1+b1       feature-rich BSD mail(1)
ii  libauthen-sasl-perl    2.14-1            Authen::SASL - SASL Authentication
ii  libcrypt-ssleay-perl   0.57-2            Support for https protocol in LWP
ii  libparse-debcontrol-pe 2.005-2           Easy OO parsing of Debian control-
ii  libsoap-lite-perl      0.710.10-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.53-1            module to manipulate and access UR
ii  libwww-perl            5.834-1           Perl HTTP/WWW client/server librar
ii  libyaml-syck-perl      1.07-1            fast, lightweight YAML loader and 
ii  lintian                2.3.4             Debian package checker
ii  lsb-release            3.2-23            Linux Standard Base version report
ii  lzma                   4.43-14           Compression method of 7z format in
ii  man-db                 2.5.7-2           on-line manual pager
ii  openssh-client [ssh-cl 1:5.3p1-3         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.2             Utilities for sensible alternative
ii  strace                 4.5.19-2          A system call tracer
ii  unzip                  6.0-4             De-archiver for .zip files
ii  wdiff                  0.5-21            Compares two files word by word
ii  wget                   1.12-1.1          retrieves files from the web

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)
pn  svn-buildpackage              <none>     (no description available)
pn  w3m                           <none>     (no description available)

-- debconf-show failed
--- /usr/bin/uscan      2010-01-03 15:16:46.000000000 +1100
+++ /home/erikd/Dpkg/devscripts/devscripts-2.10.61/scripts/uscan.pl     
2010-03-29 08:32:25.736541251 +1100
@@ -1207,6 +1207,8 @@
            print "Newest version on remote site is $newversion, local version 
is $lastversion\n" .
                ($mangled_lastversion eq $lastversion ? "" : " (mangled local 
version number $mangled_lastversion)\n");
            print " => Package is up to date\n";
+           # If we aren't being forced to download it, we should report that 
it was found.
+           $found = 1 if (! $force_download);
        }
        $dehs_tags{'status'} = "up to date";
        if (! $force_download) {

--- End Message ---
--- Begin Message ---
tag 575864 wontfix
thanks

On Tue, Mar 30, 2010 at 08:58:57AM +1100, Erik de Castro Lopo wrote:
> I believe uscan should return an error code of zero in the following case:
> 
>    $ uscan --report-status --watchfile debian/watch
>    Processing watchfile line for package haskell-unixutils...
>    Newest version on remote site is 1.22, local version is 1.22
>     => Package is up to date
>    $ echo $?
>    1

Since uscan's purpose, as documented in uscan(1), is to look for newer
versions of upstream source, we return 0 when there's been a newer
version found.  Applying this patch would break that behavior.  As such,
I'm closing this bug.

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply via email to