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

Re: [PATCH] Change format of packages.txt/binary.packages to be machine readable

Cody A.W. Somerville wrote:
> Unfortunately, the output
> from "dpkg -l" isn't the easiest to machine parse

why? because it's cropping the package names?

if that's the reason, i would rather go with something ugly as this
(which certainly can be improved):

dpkg-query -W -f='${Status} ${Package}\t${Version}\t${Description}\n' |
grep -v "^ " | sed -e 's|install ok installed|ii|g'

> which is why I've
> created a patch to have the output of "dpkg-query -W" which format, by
> default, is "${Package}\t${Version}\n".

the output from dpkg -l is a pseudo standard, that's why any replacement
should imho, in the default case, not provide less information than that.

Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          daniel.baumann@panthera-systems.net
Internet:       http://people.panthera-systems.net/~daniel-baumann/

Reply to: