Remove GPG home only on purge.
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Tue, 8 Mar 2011 13:17:51 +0000 (14:17 +0100)
committerValentin Vidic <Valentin.Vidic@CARNet.hr>
Tue, 8 Mar 2011 13:17:51 +0000 (14:17 +0100)
debian/postrm

index ce4e5b6..7e64384 100644 (file)
@@ -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
     ;;
 
     *)