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

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



On Thu, 21 Apr 2011, Bill Allombert wrote:
> 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.

You have "xargs" to solve this problem.

BTW, don't parse /var/lib/dpkg/status directly either, but use "dpkg-query
-W -f'${Package} ${Status}\n'".

Cheers,
-- 
Rapha?l Hertzog ? Debian Developer

Follow my Debian News ? http://RaphaelHertzog.com (English)
                      ? http://RaphaelHertzog.fr (Fran?ais)





Reply to: