The system administrator may have removed an override, and --remove will
fail if none exist. Suggest checking first to see whether the override
exists before removing it.
Thanks, Patrick Schoenfeld and Guillem Jover.
on binary dependencies. Thanks, Frank Küster. (Closes: #529771)
* Clarify the units of Installed-Size and document that it is an
approximation. Thanks, Martin Dorey. (Closes: #534408)
+ * Don't suggest calling dpkg-statoverride --remove unconditionally in
+ the postrm script. Thanks, Patrick Schoenfeld. (Closes: #539389)
* Explain that the copyright dates are for the original Policy manual
and that there is no updated list of copyright holders for subsequent
revisions available. (Partly addresses #47438)
fi
done
</example>
- The corresponding <tt>dpkg-statoverride --remove</tt>
- calls can then be made unconditionally when the package is
- purged.
+ The corresponding code to remove the override when the package
+ is purged would be:
+ <example>
+for i in /usr/bin/foo /usr/sbin/bar
+do
+ if dpkg-statoverride --list $i >/dev/null 2>&1
+ then
+ dpkg-statoverride --remove $i
+ fi
+done
+ </example>
</p>
</sect1>
</sect>