Bug#595112: /usr/bin/dpkg-maintscript-helper: Please provide helper for moving a conffile between packages
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
> 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
> 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
> In http://lists.debian.org/20120209095814.GA3452@rivendell.home.ouaza.com
> 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
- Josh Triplett
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org