Bug#768534: Use of uninitialized value $archiv in concatenation (.) or string at /usr/bin/apt-show-versions line 318.

2014-12-03 Thread Pedro Beja
Control: tags -1 patch
kthxbye

I confirm the issue here using 0.22.6.

$ apt-show-versions -u
libgudev-1.0-0:amd64/experimental *manually* upgradeable from 217-2 to 217-3
Use of uninitialized value $archiv in concatenation (.) or string at
/usr/bin/apt-show-versions line 318.
libldb1:amd64/ 1:1.1.17-1 upgradeable to 1:1.1.18-1
libsystemd-journal0:amd64/experimental *manually* upgradeable from 217-2 to
217-3

Cheers,
althaser


Bug#768534: Use of uninitialized value $archiv in concatenation (.) or string at /usr/bin/apt-show-versions line 318.

2014-11-10 Thread Carlos Maddela
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



Bug#768534: Use of uninitialized value $archiv in concatenation (.) or string at /usr/bin/apt-show-versions line 318.

2014-11-08 Thread 積丹尼 Dan Jacobson
Package: apt-show-versions
Version: 0.22.6

$ apt-show-versions
Use of uninitialized value $archiv in concatenation (.) or string at 
/usr/bin/apt-show-versions line 318.
Use of uninitialized value $archiv in concatenation (.) or string at 
/usr/bin/apt-show-versions line 318.
Use of uninitialized value $archiv in concatenation (.) or string at 
/usr/bin/apt-show-versions line 318.

A second run works OK though.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org