[Popcon-developers] Bug#659782: Bug#659782: does not cope with multiarch packages being installed

Bill Allombert Bill.Allombert at math.u-bordeaux1.fr
Mon Feb 13 19:10:44 UTC 2012


On Mon, Feb 13, 2012 at 07:46:25PM +0100, Philipp Kern wrote:
> On Mon, Feb 13, 2012 at 07:27:18PM +0100, Bill Allombert wrote:
> > popcon actually uses:
> > dpkg-query --show --showformat='${status} ${package}\n'
> > and
> > dpkg -L $pkg
> > 
> > What does that give on your system?
> 
> dpkg-query with those options does not output any arch qualifiers, just the
> basenames (libc6-i686 and mksh).
> 
> $ dpkg-query --show --showformat='${status} ${package}\n' | egrep '(libc6-i686|mksh)'
> install ok installed libc6-i686
> install ok installed mksh

Dear Philipp,

Thanks for your quick reply, this is much appreciated.

> However ${binary:Package} gives the correct result for the m-a:same package:
> 
> $ dpkg-query --show --showformat='${status} ${binary:Package}\n' | egrep '(mksh|libc6-i686)'
> install ok installed libc6-i686:i386
> install ok installed mksh

Unfortunately, that does not work with the version of dpkg in Sid
(${binary:Package} expand to the empty string).

> But not for the foreign one.
> 
> `dpkg -L libc6-i686:i386' gives me a filelist, without the arch qualifier it
> fails with the same error as in the cron mail.

So are you suggesting that dpkg should use ${binary:Package} ?
Could you patch /usr/sbin/popularity-contest line 161 to add binary: and check whether
it works correctly ?

Or did I misunderstand something ?

Cheers,
-- 
Bill. <ballombe at debian.org>

Imagine a large red swirl here. 





More information about the Popcon-developers mailing list