[Pkg-utopia-commits] r2090 - in /packages/unstable/dbus/debian: changelog dbus.postinst
lool at users.alioth.debian.org
lool at users.alioth.debian.org
Thu Feb 21 11:05:36 UTC 2008
Author: lool
Date: Thu Feb 21 11:05:35 2008
New Revision: 2090
URL: http://svn.debian.org/wsvn/pkg-utopia/?sc=1&rev=2090
Log:
Forcefully remove old init script symlinks on upgrades to this version to
properly reinstall the init script when using insserv or file-rc; thanks
Petter Reinholdtsen; closes: #466503.
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=2090&op=diff
==============================================================================
--- packages/unstable/dbus/debian/changelog (original)
+++ packages/unstable/dbus/debian/changelog Thu Feb 21 11:05:35 2008
@@ -1,3 +1,11 @@
+dbus (1.1.4-2) unstable; urgency=medium
+
+ * Forcefully remove old init script symlinks on upgrades to this version to
+ properly reinstall the init script when using insserv or file-rc; thanks
+ Petter Reinholdtsen; closes: #466503.
+
+ -- Loic Minier <lool at dooz.org> Thu, 21 Feb 2008 12:04:04 +0100
+
dbus (1.1.4-1) unstable; urgency=low
[ Loic Minier ]
Modified: packages/unstable/dbus/debian/dbus.postinst
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/dbus/debian/dbus.postinst?rev=2090&op=diff
==============================================================================
--- packages/unstable/dbus/debian/dbus.postinst (original)
+++ packages/unstable/dbus/debian/dbus.postinst Thu Feb 21 11:05:35 2008
@@ -23,27 +23,13 @@
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
- echo "Fixing up dbus startup script runlevels and priorities..." >&2
- # update start scripts to use the proper priority
- for l in 2 3 4 5; do
- old=/etc/rc$l.d/S20dbus
- new=/etc/rc$l.d/S12dbus
- if [ -e $old ] && ! [ -e $new ]; then
- mv -vf $old $new >&2
- fi
- done
- # drop stop scripts in runlevels we don't install anymore
- for l in 0 6; do
- if [ -L /etc/rc$l.d/K20dbus ] && [ "../init.d/dbus" = "$(readlink /etc/rc$l.d/K20dbus)" ]; then
- rm -vf /etc/rc$l.d/K20dbus >&2
- fi
- done
- # update stop script to use the proper priority
- if [ -e /etc/rc1.d/K20dbus ] && ! [ -e /etc/rc1.d/K88dbus ]; then
- mv -vf /etc/rc1.d/K20dbus /etc/rc1.d/K88dbus >&2
- fi
+# update init script symlinks for new runlevels and priorities for upgrades
+# from older versions
+if [ "$1" = configure ] && dpkg --compare-versions "$2" lt-nl 1.1.4-2; then
+ echo "Reinstalling init script for new runlevels and priorities..." >&2
+ # remove old init script symlinks; dh_installinit adds the proper
+ # update-rc.d snippet later on
+ update-rc.d -f dbus remove
fi
#DEBHELPER#
More information about the Pkg-utopia-commits
mailing list