From: Jonathan McDowell Date: Tue, 14 Sep 2004 18:17:51 +0000 (+0000) Subject: Fix cleanup of statoverrides when purging package. X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/2796e65c80aa5b1c1787e161fbb2cc8ac57b0fb0?ds=sidebyside Fix cleanup of statoverrides when purging package. Purging of the package failed due to incorrect use of dpkg-statoverride; this fixes that. --- diff --git a/debian/postrm b/debian/postrm index 2639332..c8ef717 100644 --- a/debian/postrm +++ b/debian/postrm @@ -4,6 +4,8 @@ set -e if [ "$1" = "purge" ]; then if dpkg-statoverride --list /usr/lib/cgi-bin/pks/\* >/dev/null; then - dpkg-statoverride --remove + for i in $(dpkg-statoverride --list /usr/lib/cgi-bin/pks/\* | cut -d " " -f 4); do + dpkg-statoverride --remove $i + done fi fi