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

Bug#539389: 10.9.1 contains wrong sentence about postrm usage



Hi!

On Fri, 2009-07-31 at 13:58:29 +0200, Patrick Schoenfeld wrote:
> Package: debian-policy
> Version: 3.8.2.0
> Severity: normal

> 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.

This behaviour change was done in dpkg 1.9.0 (2001), commit cf5d2919.

> So it should be called somewhat like that:
> 
> if dpkg-statoverride --list $file >/dev/null 2>&1 ; then
>  dpkg-statoverride --remove $i
> done

Another option could be “dpkg-statoverride --force --remove $i”.

regards,
guillem



Reply to: