Re: Parsing of dpkg status file considered harmful
- To: debian-devel@lists.debian.org
- Subject: Re: Parsing of dpkg status file considered harmful
- From: Michael Biebl <biebl@debian.org>
- Date: Thu, 21 Jun 2007 18:17:31 +0100
- Message-id: <[🔎] 467AB2AB.7070809@debian.org>
- In-reply-to: <20070531155421.GA2510@zulo.hadrons.org>
- References: <20070530045336.GA23366@zulo.hadrons.org> <1180615860.21308.17.camel@silicium.ccc.cea.fr> <20070531155421.GA2510@zulo.hadrons.org>
-----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: