[Pkg-utopia-commits] r2746 - in /packages/unstable/avahi/debian: avahi-daemon.postinst avahi-dnsconfd.postinst changelog

biebl at users.alioth.debian.org biebl at users.alioth.debian.org
Wed Jan 14 19:05:57 UTC 2009


Author: biebl
Date: Wed Jan 14 19:05:57 2009
New Revision: 2746

URL: http://svn.debian.org/wsvn/pkg-utopia/?sc=1&rev=2746
Log:
* debian/avahi-{daemon,dnsconfd}.postinst
  - When upgrading the init script priorities, check if the service is
    enabled for the default runlevel before removing the old init script
    symlinks to avoid accidently re-enabling it. (Closes: #499815)

Modified:
    packages/unstable/avahi/debian/avahi-daemon.postinst
    packages/unstable/avahi/debian/avahi-dnsconfd.postinst
    packages/unstable/avahi/debian/changelog

Modified: packages/unstable/avahi/debian/avahi-daemon.postinst
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/avahi/debian/avahi-daemon.postinst?rev=2746&op=diff
==============================================================================
--- packages/unstable/avahi/debian/avahi-daemon.postinst (original)
+++ packages/unstable/avahi/debian/avahi-daemon.postinst Wed Jan 14 19:05:57 2009
@@ -33,7 +33,8 @@
 
     # update init script symlinks for new runlevels and priorities for upgrades
     # from older versions
-    if dpkg --compare-versions "$2" lt-nl 0.6.22-4; then
+    if dpkg --compare-versions "$2" lt-nl 0.6.22-4 && \
+       [ -e /etc/rc2.d/S??avahi-daemon ]; 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

Modified: packages/unstable/avahi/debian/avahi-dnsconfd.postinst
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/avahi/debian/avahi-dnsconfd.postinst?rev=2746&op=diff
==============================================================================
--- packages/unstable/avahi/debian/avahi-dnsconfd.postinst (original)
+++ packages/unstable/avahi/debian/avahi-dnsconfd.postinst Wed Jan 14 19:05:57 2009
@@ -5,7 +5,8 @@
 
 # update init script symlinks for new runlevels and priorities for upgrades
 # from older versions
-if [ "$1" = configure ] && dpkg --compare-versions "$2" lt-nl 0.6.22-4; then
+if [ "$1" = configure ] && dpkg --compare-versions "$2" lt-nl 0.6.22-4 && \
+   [ -e /etc/rc2.d/S??avahi-dnsconfd ]; 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

Modified: packages/unstable/avahi/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/avahi/debian/changelog?rev=2746&op=diff
==============================================================================
--- packages/unstable/avahi/debian/changelog (original)
+++ packages/unstable/avahi/debian/changelog Wed Jan 14 19:05:57 2009
@@ -1,3 +1,12 @@
+avahi (0.6.23-4) UNRELEASED; urgency=low
+
+  * debian/avahi-{daemon,dnsconfd}.postinst
+    - When upgrading the init script priorities, check if the service is
+      enabled for the default runlevel before removing the old init script
+      symlinks to avoid accidently re-enabling it. (Closes: #499815)
+
+ -- Michael Biebl <biebl at debian.org>  Wed, 14 Jan 2009 20:00:12 +0100
+
 avahi (0.6.23-3) unstable; urgency=low
 
   [ Loic Minier ]




More information about the Pkg-utopia-commits mailing list