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

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

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.

Bill. <ballombe@debian.org>

Imagine a large red swirl here. 

Reply to: