On Fri, Jul 13, 2012 at 05:26:28PM +0200, Raphael Hertzog wrote: > retitle 595112 dpkg-maintscript-helper: new helper for moving a conffile > between packages > thanks > > On Tue, 31 Aug 2010, Josh Triplett wrote: > > Moving a conffile from one package to another seems to prove even more > > difficult than renaming it or removing it. Please consider providing > > support for this case in dpkg-maintscript-helper. > > What kind of problems are you referring to? > > Michael Biebl reported in the thread at > http://lists.debian.org/[email protected] > that the difficulty was to handle the case where the target > package has no guaranty to be installed. In that case, we > might keep the old conffile around when we don't really > want. > > In http://lists.debian.org/[email protected] > I suggested to create a rm_conffile_if_owner helper > function to deal with this case. > > Would this fit your needs too?
I *think* that would work. I don't need support for moving conffiles between arbitrary packages, just support for allowing package2 to take over a conffile from package1, and allowing package1 to drop the conffile if not installing package2. How would rm_conffile_if_owner behave with a modified conffile? Would it keep the conffile around in a way that allows the new package to take it over with the old contents still intact? And, would this also ensure that the conffile (even if modified) gets removed when purging package1, if not yet taken over by package2? - Josh Triplett -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/20120713184627.GA11036@jtriplet-linux

