Package: apt-show-versions
Version: 0.22.6
Followup-For: Bug #768534

I have attached a patch which fixes the warning, but hopefully doesn't
reintroduce the problem the original change was trying to fix.

Carlos

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt-show-versions depends on:
ii  apt                      1.0.9.3
ii  libapt-pkg-perl          0.1.29+b2
ii  perl [libstorable-perl]  5.20.1-2

apt-show-versions recommends no packages.

apt-show-versions suggests no packages.

-- Configuration Files:
/etc/apt/apt.conf.d/20apt-show-versions changed [not included]
/etc/cron.daily/apt-show-versions changed [not included]

-- no debconf information
>From 0af875aae71a24cfb37314dd389223716ecfbc3a Mon Sep 17 00:00:00 2001
From: Carlos Maddela <madd...@labyrinth.net.au>
Date: Mon, 10 Nov 2014 22:08:36 +1100
Subject: [PATCH 1/2] Fixed warning.

---
 apt-show-versions | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apt-show-versions b/apt-show-versions
index 9136523..65737ea 100755
--- a/apt-show-versions
+++ b/apt-show-versions
@@ -456,7 +456,7 @@ sub print_package_internal {
             if ($version) {
                 my @version_info;
                 ($found, @version_info) =
-		    &print_version($irelease,
+                    &print_version(($irelease ? $irelease : &get_rel_name($_->{$RELEASE})),
                                    $pkgarch, $iversion, $version, $cand);
                 push @print_info, @version_info if ($found);
                 $aversion = $version;
-- 
2.1.3

Reply via email to