Package: apt-show-versions
Version: 0.22.6
Severity: important
Tags: patch

Dear Maintainer,

The fix for sorting of versions seems to have broken the output of the
message "No available version in archive".

Hopefully the patch I've provided is satisfactory.

Best regards,

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 6485933f7a571ff66897fb0e6d356530727f0380 Mon Sep 17 00:00:00 2001
From: Carlos Maddela <[email protected]>
Date: Mon, 10 Nov 2014 22:10:15 +1100
Subject: [PATCH 2/2] Fixed removal of "No available version in archive".

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

diff --git a/apt-show-versions b/apt-show-versions
index 65737ea..ae074a0 100755
--- a/apt-show-versions
+++ b/apt-show-versions
@@ -356,7 +356,7 @@ sub print_package {
             printf("%s not installed (not available)\n", $pkgname);
         }
     } else {
-        foreach my $arch ($archname or sort keys(%{$apackages->{$pkgname}})) {
+        foreach my $arch ($archname or sort keys(%{{map{$_=>1}(keys(%{$apackages->{$pkgname}}), keys(%{$pkgs->{$pkgname}}))}})) {
             print_package_internal($pkgname, $arch);
         }
     }
-- 
2.1.3

Reply via email to