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

Re: [Popcon-developers] Bug#660712: popularity-contest broken with Multi-Arsch


On Tue, 03 Apr 2012, Bill Allombert wrote:
> > /etc/cron.daily/popularity-contest:
> > dpkg-query: error: --listfiles needs a valid package name but 'gcc-4.7-base' is not: ambiguous package name 'gcc-4.7-base' with more than one installed instance
> I think dpkg should just report the list of files in both packages to preserve the API.

It's not going to happen. This interface choice has been discussed at
length. I don't want to rehash the discussion.

One parameter should not give out multiple entries in the output so you'll
have to arch qualify the Multi-Arch: same package. You have already been
pointed into the right direction. You need to use the ${binary:Package}
output of "dpkg-query -W" with a fallback to ${Package} if its output is empty.

Raphaël Hertzog ◈ Debian Developer

Pre-order a copy of the Debian Administrator's Handbook and help
liberate it: http://debian-handbook.info/liberation/

Reply to: