[Popcon-developers] Bug#622322: popularity-contest: popcon tries to access dpkg internal files and fails with multiarch: same packageso

Bill Allombert Bill.Allombert at math.u-bordeaux1.fr
Thu Apr 21 20:54:11 UTC 2011


On Wed, Apr 20, 2011 at 04:10:58PM -0500, Jonathan Nieder wrote:
> Hi,
> 
> Bill Allombert wrote:
> 
> > This is not possible: forking dpkg for all installed packages would be way to slow and 
> > resource intensive. We need a better option.
> 
> Bonus points if this interface has an option to point to the file on
> disk rather than asking the caller to take care of tracking down
> diversions.
> 
> Of course alternative methods might be possible; I ask the above
> because I am worried about the memory usage from
> "dpkg-query -L $(list-all-packages)".

Another issue with 'dpkg-query -L $(list-all-packages)' is that it is not portable
to system with a command-line length limit.

I suppose popcon will have to process packages by chunk of 100, say.

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

Imagine a large red swirl here. 





More information about the Popcon-developers mailing list