Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian dpkg (http://www.linux-archive.org/debian-dpkg/)
-   -   Bug#660712: popularity-contest broken with Multi-Arsch (http://www.linux-archive.org/debian-dpkg/652319-bug-660712-popularity-contest-broken-multi-arsch.html)

Bill Allombert 04-03-2012 06:29 PM

Bug#660712: popularity-contest broken with Multi-Arsch
 
On Tue, Apr 03, 2012 at 03:27:47PM +0000, Thorsten Glaser wrote:
> ping?
> ---------- Forwarded message ----------
> From: Cron Daemon <root@zigo.mirbsd.org>
> Message-ID: <201204030625.q336PfbX002560@zigo.mirbsd.org>
> X-Spam-Status: No, hits=0.000000 required=0.900000
> To: root@zigo.mirbsd.org
> Date: Tue, 3 Apr 2012 06:25:41 GMT
> Subject: Cron <root@zigo> test -x /usr/sbin/anacron || ( cd / && run-parts
> --report /etc/cron.daily )
>
> /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.

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

Imagine a large red swirl here.


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120403182946.GB32630@yellowpig">http://lists.debian.org/20120403182946.GB32630@yellowpig

Raphael Hertzog 04-03-2012 08:13 PM

Bug#660712: popularity-contest broken with Multi-Arsch
 
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-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120403201353.GI21192@rivendell.home.ouaza.com">h ttp://lists.debian.org/20120403201353.GI21192@rivendell.home.ouaza.com

Bill Allombert 04-15-2012 07:35 PM

Bug#660712: popularity-contest broken with Multi-Arsch
 
On Tue, Apr 03, 2012 at 10:13:53PM +0200, Raphael Hertzog wrote:
> 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.

Why not ? This provides backward compatibility without affecting the new interfaces.

You required popcon to use dpkg -L because you said this is the stable interface,
but now some month later, this interface is broken even though it can be easily
kept compatible.

If it does not provide a stable interface, then I should revert to direct file
access since this is significantly faster.

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

Imagine a large red swirl here.


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120415193536.GA21761@yellowpig">http://lists.debian.org/20120415193536.GA21761@yellowpig


All times are GMT. The time now is 10:58 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.