debian/postrm
branchdebian
changeset 116 d99f3169828a
parent 97 7953788881a4
child 224 caf9cb61f856
--- a/debian/postrm	Tue Oct 13 15:30:03 2009 +0100
+++ b/debian/postrm	Tue Oct 13 18:21:22 2009 +0100
@@ -20,7 +20,12 @@
 
 
 case "$1" in
-    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    purge)
+        deluser --quiet --system hg > /dev/null || true
+        delgroup --quiet --system hg > /dev/null || true
+    ;;
+
+    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
     ;;
 
     *)