FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian dpkg

 
 
LinkBack Thread Tools
 
Old 04-03-2012, 06:29 PM
Bill Allombert
 
Default 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
 
Old 04-03-2012, 08:13 PM
Raphael Hertzog
 
Default 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
 
Old 04-15-2012, 07:35 PM
Bill Allombert
 
Default 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
 

Thread Tools




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

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org