From 23cf33e754229c5e245c3ad19cefb5531b2b049b Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Tue, 8 Mar 2011 14:17:51 +0100 Subject: [PATCH] Remove GPG home only on purge. --- debian/postrm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/postrm b/debian/postrm index ce4e5b6..7e64384 100644 --- a/debian/postrm +++ b/debian/postrm @@ -24,7 +24,9 @@ clean_gpg() { case "$1" in purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) - clean_gpg + if [ "$1" = "purge" ]; then + clean_gpg + fi ;; *) -- 1.7.10.4