On 2015-04-30 08:27:20, Paul Wise wrote:
> The packages apertium-en-es, proj-data and wml have transitioned from
> Architecture: any in unstable to Architecture: all in experimental. I
> have the unstable versions installed but not the experimental ones and
> apt-show-versions shows "foo:all not installed" for all of them. This is
> confusing since apt-show-versions is meant to only show installed stuff.
>
> apertium-en-es:all not installed
> apertium-en-es:amd64/testing 0.6.0-1.1+b2 uptodate
> proj-data:all not installed
> proj-data:amd64/testing 4.8.0-5 uptodate
> wml:all not installed
> wml:amd64/testing 2.0.12ds1-8 uptodate

It seems like this is deliberate in the code, yet it's totally unclear
to me why it's happening. The following patch, of course, fixes the
problem:

diff --git i/apt-show-versions w/apt-show-versions
index 3df13c7..ab1f91c 100755
--- i/apt-show-versions
+++ w/apt-show-versions
@@ -513,7 +513,7 @@ sub print_package_internal {
                      "version in archive\n");
             }
         }
-    } else {
+    } elsif ($ipkg->{$VERS}) {
         push(@print_info, "$pkgarch not installed",
              ($mode == $MODE_SINGLE and not 
keys(%{$apackages->{$package}{$arch}}))
             ? " (even not available)\n" : "\n");

But it's not clear to me what the proper solution is or what the purpose
of this 'not installed' statement is... That code has been present
basically forever (since the 2007, 0.10 original git import) without any
clear explanation.

Another alternative would be to just remove that code completely, since
it's unclear what purpose it serves. This is basically what the above
does anyways.

Other opinions?

A.

-- 
Growth for the sake of growth is the ideology of the cancer cell.
                        - Edward Abbey

Reply via email to