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

Re: Taking over conffiles from other packages while cleaning up properly [Re: Problems detected: package initscripts left obsolete init.d script behind]


Am 08.02.2012 08:27, schrieb Raphael Hertzog:

What's difficult in implementing this?

I haven't found cocumentation how to correctly move conffiles from one package to another. Neither at [1] nor the dpkg-maintscript-helper man page. As mentioned, a simple Replaces in the newly split-off package is not sufficient, as you will have obsolete conffiles, in case the new split-off package is not installed. I've seen this problem a couple of times and I thought it would be worthwile getting a best practice for this case documented.

You can't really use dpkg-maintscript-helper conditionnaly because the
installation state of bootlogd might change between preinst and postinst
but you could at least remove the (unmodified) files in postinst if you see that
bootlogd is not at least unpacked (usage of dpkg-query in maintainer
scripts is safe).

It would be awesome, if the aforementioned wiki and/or the dpkg-maintscript-helper man page would document how to do this which a short example. Could you give a short example how postinst would look like for the case that package foo is split int foo in version 1.0-1
and bar takes over the conffile /etc/baz.conf from foo.

I'm still not quite sure which states I should check for using dpkg-query.


[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?

Reply to: