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

Re: Converting dpkg-conffile in postinst



On Fri, Oct 25, 2002 at 10:46:23PM +0200, Marc Haber wrote:

> Netbase does indeed convert /etc/network/interface on upgrade, but
> that is not a dpkg-conffile.

And it should not be a dpkg conffile if it is modified by maintainer
scripts.

> When I tried it, dpkg replaced the conffile in place with the new
> version from the package before my conversion script was called.
> 
> So I am still looking for a package that converts a dpkg-conffile
> during postinst.

If you find any, be sure to file a bug, because this is forbidden.

http://www.debian.org/doc/debian-policy/ch-files.html#s-config-files

The easy way to achieve this behavior is to make the configuration file a
conffile. This is appropriate only if it is possible to distribute a default
version that will work for most installations, although some system
administrators may choose to modify it. This implies that the default
version will be part of the package distribution, and MUST NOT BE MODIFIED
BY THE MAINTAINER SCRIPTS during installation (or at any other time). 

(emphasis is mine)

-- 
 - mdz



Reply to: