[Pkg-utopia-commits] r287 - packages/experimental/hal/debian

Sjoerd Simons sjoerd at costa.debian.org
Sat Aug 27 20:30:44 UTC 2005


Author: sjoerd
Date: 2005-08-27 20:30:44 +0000 (Sat, 27 Aug 2005)
New Revision: 287

Modified:
   packages/experimental/hal/debian/hal.postrm
Log:
Only restart dbus on package removal

Modified: packages/experimental/hal/debian/hal.postrm
===================================================================
--- packages/experimental/hal/debian/hal.postrm	2005-08-27 20:19:13 UTC (rev 286)
+++ packages/experimental/hal/debian/hal.postrm	2005-08-27 20:30:44 UTC (rev 287)
@@ -2,11 +2,18 @@
 
 set -e
 
+# Do not restart dbus on upgrades, only if we remove the package.
+if [ "$1" = "remove" ]; then
+    if [ -x /etc/init.d/dbus ]; then
+        invoke-rc.d dbus restart || true
+    fi
+fi
+
 #DEBHELPER#
 
 if [ "$1" = "purge" ] ; then
-        deluser --quiet hal > /dev/null || true
-        delgroup --quiet hal > /dev/null || true
+        deluser --quiet --system hal > /dev/null || true
+        delgroup --quiet --system hal > /dev/null || true
 fi
 
 exit 0




More information about the Pkg-utopia-commits mailing list