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

Re: [PATCH] add dpkg-conffile, based upon http://wiki.debian.org/DpkgConffileHandling

Joey Hess wrote:
Michael Biebl wrote:
Interesting. When I rename an obsolete, modified conffile in preinst to .dpkg-bak, I can't find a reference anymore in /var/lib/dpkg/status or /var/lib/dpkg/info/$pkg.*

Where does dpkg store the information about conffile then?

It must drop it from the status file during configuration if the
conffile is removed and keep it otherwise.

I was not talking about removing the conffile, but moving/renaming it to .dpkg-bak. It's obvious, that the obsolete conffile is dropped from the status file, in case it has been removed in preinst. But it's also removed from the status file, when the file is being renamed in preinst (due to local modifications). So, dpkg no longer knows about this file and that's why I submitted the proposed patch to clean up the .dpkg-bak file in postrm/purge.

I'm not sure what you wanted to say with your last sentence. Are you proposing that dpkg should still keep the obsolete conffile in the status file, even when it was renamed to .dpkg-bak in preinst (and the original conffile is no longer there)?


Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply to: