[Pkg-utopia-commits] r2083 - in /packages/unstable/dbus/debian: changelog dbus.postinst

lool at users.alioth.debian.org lool at users.alioth.debian.org
Mon Feb 18 16:10:11 UTC 2008


Author: lool
Date: Mon Feb 18 16:10:11 2008
New Revision: 2083

URL: http://svn.debian.org/wsvn/pkg-utopia/?sc=1&rev=2083
Log:
Simplify dbus.postinst.

Modified:
    packages/unstable/dbus/debian/changelog
    packages/unstable/dbus/debian/dbus.postinst

Modified: packages/unstable/dbus/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/dbus/debian/changelog?rev=2083&op=diff
==============================================================================
--- packages/unstable/dbus/debian/changelog (original)
+++ packages/unstable/dbus/debian/changelog Mon Feb 18 16:10:11 2008
@@ -44,6 +44,7 @@
   * Cleanup trailing whitespace.
   * Drop superfluous exit 0 at the end of dbus' init script which is set -e.
   * Add ${shlibs:Depends} to libdbus-1-dev.
+  * Simplify dbus.postinst.
 
  -- Michael Biebl <biebl at debian.org>  Tue, 04 Dec 2007 21:31:12 +0100
 

Modified: packages/unstable/dbus/debian/dbus.postinst
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/dbus/debian/dbus.postinst?rev=2083&op=diff
==============================================================================
--- packages/unstable/dbus/debian/dbus.postinst (original)
+++ packages/unstable/dbus/debian/dbus.postinst Mon Feb 18 16:10:11 2008
@@ -8,30 +8,20 @@
 MESSAGEHOME=/var/run/dbus
 LAUNCHER=/usr/lib/dbus-1.0/dbus-daemon-launch-helper
 
-case "$1" in
-    configure)
-        adduser --system \
-                --home "$MESSAGEHOME" \
-                --no-create-home \
-                --disabled-password \
-                --group "$MESSAGEUSER"
+if [ "$1" = configure ]; then
+    adduser --system \
+            --home "$MESSAGEHOME" \
+            --no-create-home \
+            --disabled-password \
+            --group "$MESSAGEUSER"
 
-        chown "$MESSAGEUSER":"$MESSAGEUSER" "$MESSAGEHOME"
+    chown "$MESSAGEUSER":"$MESSAGEUSER" "$MESSAGEHOME"
 
-        if ! dpkg-statoverride --list "$LAUNCHER" > /dev/null 2>&1; then
-                chown root:"$MESSAGEUSER" "$LAUNCHER"
-                chmod 4754 "$LAUNCHER"
-        fi
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
+    if ! dpkg-statoverride --list "$LAUNCHER" >/dev/null 2>&1; then
+            chown root:"$MESSAGEUSER" "$LAUNCHER"
+            chmod 4754 "$LAUNCHER"
+    fi
+fi
 
 # fix rc symlink priorities for upgrades from older versions
 if [ "$1" = configure ] && dpkg --compare-versions "$2" lt-nl 1.1.4-1; then




More information about the Pkg-utopia-commits mailing list