Fix Debian bug #605584 debian
authorPaul Crowley <paul@lshift.net>
Sat, 04 Dec 2010 20:22:01 +0000
branchdebian
changeset 261 b6e65bddda7c
parent 259 bbf25d56d486
child 277 265b258904d2
Fix Debian bug #605584
debian/postrm
--- a/debian/postrm	Thu Mar 04 16:48:23 2010 +0000
+++ b/debian/postrm	Sat Dec 04 20:22:01 2010 +0000
@@ -21,12 +21,9 @@
         if remove_repositories_on_purge; then
             echo -n "Removing hg user and purging data..."
             deluser --remove-home --quiet --system hg > /dev/null || true
-        else
-            echo -n "Removing hg user..."
-            deluser --quiet --system hg > /dev/null || true
+            delgroup --quiet --system hg > /dev/null || true
+            echo done
         fi
-        delgroup --quiet --system hg > /dev/null || true
-        echo done
     ;;
 
     remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)