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

Re: Parsing of dpkg status file considered harmful



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Guillem Jover wrote:
> On Thu, 2007-05-31 at 14:51:00 +0200, Josselin Mouette wrote:
>> Le mercredi 30 mai 2007 à 07:53 +0300, Guillem Jover a écrit :
>>> If you need to retrieve the conffile info, which is why most of those
>>> packages are poking at the status file, please use something like:
>>>
>>>   $ dpkg-query -W -f='${Conffiles}' docbook-xml
>>>
>>> which is also cleaner. If there happens to be any reentrancy problem
>>> in dpkg-query, that will be considered a bug and fixed, so this should
>>> be considered the standard api for maintainer scripts.
>> Could you please fix the wiki page with proper functions you recommend?
> 
> Sure, done.

FWIW the new documentation on the wiki [1] regarding dpkg-query was not entirely
correct. It missed to strip of the "obsolete" keyword. I updated the wiki
accordingly.

Cheers,
Michael

[1] http://wiki.debian.org/DpkgConffileHandling

- --
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGerKrh7PER70FhVQRAvrFAJ9z6An10Xn3niFddCPwHXEknGelagCeNEp5
jVYWw2eBQjgc3W1h07dx3J8=
=1gj8
-----END PGP SIGNATURE-----



Reply to: