From 2796e65c80aa5b1c1787e161fbb2cc8ac57b0fb0 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Tue, 14 Sep 2004 18:17:51 +0000 Subject: [PATCH 1/1] Fix cleanup of statoverrides when purging package. Purging of the package failed due to incorrect use of dpkg-statoverride; this fixes that. --- debian/postrm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5