Bug#703022: debian-policy: Appendix G: Diversion example faulty (doesn't work for conffiles)
Package: debian-policy
Version: 3.9.1.0
Severity: minor
The example provided in Appendix G of the DPM regarding the removal of
diversions doesn't work if the file diverted is a conffile. This is
due to the fact that conffiles are not removed during a "remove", but
but only during a "purge". As a "purge" implies a "remove" beforehand
(the postrm script is called twice), the example will fail even on a
"purge" with dpkg-divert refusing to clobber the existing conffile.
IMO a footnote should be added alerting the user to this fact and
providing a solution for this special case (use "purge" instead of
"remove" as the first test).
Greetings from Karlsruhe,
=ToJe=
-- System Information:
Debian Release: 6.0.7
APT prefers stable
APT policy: (990, 'stable'), (500, 'stable-updates')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
debian-policy depends on no packages.
debian-policy recommends no packages.
Versions of packages debian-policy suggests:
pn doc-base <none> (no description available)
-- no debconf information
Reply to: