Hi,

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.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

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


--
To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120403201353.gi21...@rivendell.home.ouaza.com

Reply via email to