On Thu, 19 Apr 2012, Andreas Rütten wrote: > Neither the old 'rules' nor the new 'rules.v4' file are shipped within > the package and so they are not a conffile.
In this case, effectively the usage of dpkg-maintscript-helper is not welcome, it has clearly been written to deal with conffiles and it tries to verify if the file is pristine or not by looking into the "Conffiles" field of the package. Since a non-conffile would never appear there, it will always assume that the file has been modified by the admin and will thus always keep a copy of the old file. This "pristine check" is the main point of doing all this, otherwise a simple mv in the preinst is generally enough. Replying to the initial bug reporter: > The 'mv_conffile' function only works if the target file exists by the > postinst stage. It should better exist since it's a new conffile and it has been just installed by dpkg (at least that's the assumption made). Cheers, -- Raphaël Hertzog ◈ Debian Developer Pre-order a copy of the Debian Administrator's Handbook and help liberate it: http://debian-handbook.info/liberation/ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/985508 Title: dpkg-maintscript-helper 'mv_conffile' fails if target doesn't already exist To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/985508/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs