On Tue, Jul 31, 2012 at 08:47:06PM +0200, Raphael Hertzog wrote: > On Tue, 31 Jul 2012, Josh Triplett wrote: > > Consider the original motivation for this. You have a package A, which > > contains a daemon B and an init script /etc/init.d/B. You split B and > > its init script (and any other configuration files for it) into its own > > package, which A does not depend on. If installing B, you want to > > preserve the configuration of B. B didn't exist beforehand, so no > > package exists for A to declare a Breaks against. However, nothing > > guarantees that the user will install B at the same time as upgrading A. > > In particular, it seems highly likely that a user who wants B will > > upgrade A, read the NEWS.Debian file, and then choose whether to install > > B. > > OK so we really need a "recover_conffile" which would be used in > package2 and would move a .dpkg-bak copy in its original place.
That sounds perfect. Package A would use rm_conffile, which would move a modified conffile to .dpkg-bak; package B would ship a default configuration file, and use recover_conffile, which would move the .dpkg-bak file over the top of the default configuration file if it exists. - Josh Triplett -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

