Package: xfonts-wqy
Version: 0.9.9-2
Severity: serious
Justification: Policy 10.7.3

The postinst script in 0.9.9-2 checks the old fontconfig settings in
/etc/fonts/conf.d/ and cleans them up during upgrade.  However, the way
it is handled violates the policy requirement about conffiles.

Quote policy 10.7.3:  "Configuration file handling must conform to the
following behavior: ... local changes must be preserved during a package
upgrade ...".

However, in xfonts-wqy's postinst:
    # Clean up old config files
    if dpkg --compare-versions "$2" lt-nl 0.9.9; then
        rm -f $CONFDIR/wqy.conf
    fi
This will delete the /etc/fonts/conf.d/wqy.conf conffile even if it's
locally modified.

Although user modification of this file is not very likely, it's
nonetheless a conffile already shipped in etch.  And I think upgrades
between stable releases should be treated very seriously.  The fix is
also not very hard, the script just need to check the md5sum of the
conffile, something like the examples in [1].

1. http://wiki.debian.org/DpkgConffileHandling 

Ming
2007.12.22



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to