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

Re: Parsing of dpkg status file considered harmful

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.

> > I'll be filing bug reports on lintian and linda so that they give
> > errors on maintainer scripts poking at the file...
> Good. This could also be made a release goal so that you can safely
> consider to change this database layout (or not) in lenny+1.

Once the lintian results are online, bugs will be easier to spot and
be filed.


Reply to: