severity 491329 minor
retitle 491329 commit-tool: causes hg error messages if removed but not purged
thanks

Vernon Tang wrote:
> severity 491329 serious
> retitle 491329 should remove hgrc entry when package is removed
> thanks
> 
> Vincent, I think it is entirely reasonable that the commit-tool package
> should remove itself from the hgrc when it is removed.
> 
> /etc/mercurial/hgrc.d/commit-tool.rc isn't so much an actual
> "configuration file" as it is simply a means to enable the hct extension
> system-wide.

It IS a configuration file. It is even a conffile for dpkg !
If you read the policy, the package MUST NOT modify its configuration file
on removal, only on purge.
Policy 10.7.3
[...]
configuration files must be preserved when the package is removed, and only
deleted when the package is purged.
[...]
Policy 10.7.4
[...]
The maintainer scripts must not alter a conffile of any package, including
the one the scripts belong to.
[...]

> So perhaps you could e.g. include a postrm script that
> comments the line in commit-tool.rc out when the package is removed.

Only when someone will be able to tell me what in the policy allow me to
go against it.

Note that changing anything here will mean to switch from a conffile to
a script-maintained configuration file. I really do not think that such a
change would be accepted in lenny now.


  One possibility would have been to NOT provide the conffile. However,
the user (or admin) would then have been required to add this configuration
in the global (or per user or per projet) hgrc. And there would be the same
problem of mercurial trying to still load commit-tool when the package is
removed. Even worst: the purge of the package would not change anything here.


  Unless someone add really strong arguments to go against the policy,
or unless someone takeover this package, please:
- do not change the severity
- do not change the bug title

  Regards,
    Vincent

-- 
Vincent Danjean       GPG key ID 0x9D025E87         vdanj...@debian.org
GPG key fingerprint: FC95 08A6 854D DB48 4B9A  8A94 0BF7 7867 9D02 5E87
Unofficial pacakges: http://www-id.imag.fr/~danjean/deb.html#package
APT repo:  deb http://perso.debian.org/~vdanjean/debian unstable main




-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to