[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#664083: debian-el: apt-utils-show-package reports "Multi-Arch:same" packages as not installed



Sven Joachim <svenjoac@gmx.de> writes:

> With dpkg from git master, apt-utils-show-package wrongly reports
> "Multi-Arch:same" packages as not installed, e.g. libc6:
>
> ,----
> | Package: libc6 (Not installed; not known to dpkg)
> | Source: eglibc
> | Version: 2.13-27
> | [...]
> `----
>
> The reason is apparently that dpkg now arch-qualifies "Multi-Arch:same"
> packages in its output:
>
> ,----
> | $ LANG=C dpkg -l libc6
> | Desired=Unknown/Install/Remove/Purge/Hold
> | | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
> | |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
> | ||/ Name                Version             Description
> | +++-===================-===================-======================================================
> | ii  libc6:i386          2.13-27             Embedded GNU C Library: Shared libraries
> `----
>
> See http://lists.debian.org/debian-devel-announce/2012/03/msg00005.html
> for more information.

Yeah, I guess parsing the output of dpkg -l is always going to be
fragile.  Probably it would be better to use something like
"grep-status -s Status,Version,Architecture -P libc6 --and -FStatus installed"

It's less clear to me how much work it is to make this code multiarch
aware. looking at the function apt-utils-get-installed-info, it really
only looks for a single installed version of a package.


Reply to: