Package: apt-show-versions
Version: 0.12
Severity: wishlist

If you invoke apt-show-versions -u <package> on a package that has no available 
upgrade,
there is no output and the exit code is zero. For example:

$ apt-show-versions -u ept-cache
$ echo $?
0

It would be nice if this returned a non-zero
exit code in this case (and a zero exit code if there *was* an upgrade 
available). 

Without one, you have to do this to generate one:

$ apt-show-versions -u ept-cache | grep -q upgradable
$ echo $?
1


Thanks for this tool, you simplified things greatly for me,
Micah


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-rc7-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt-show-versions depends on:
ii  apt                           0.7.10     Advanced front-end for dpkg
ii  libapt-pkg-perl               0.1.21+b3  Perl interface to libapt-pkg
ii  perl [libstorable-perl]       5.8.8-12   Larry Wall's Practical Extraction 

apt-show-versions recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to