Bug#539389: 10.9.1 contains wrong sentence about postrm usage
Package: debian-policy
Version: 3.8.2.0
Severity: normal
Hi,
10.9.1 The use of dpkg-statoverride states:
"The corresponding dpkg-statoverride --remove calls can then be made
unconditionally when the package is purged."
This is not true, because dpkg-statoverride fails, if no override
exists, causing the purge to fail as well.
Because the admin could remove an override the remove
call should not happen, if the override does not exist.
So it should be called somewhat like that:
if dpkg-statoverride --list $file >/dev/null 2>&1 ; then
dpkg-statoverride --remove $i
done
Best Regards,
Patrick
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.29-2-686 (SMP w/2 CPU cores)
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:
ii doc-base 0.9.3 utilities to manage online documen
-- no debconf information
Reply to: