reassign 670085 sysv-rc
tags 670085 patch
thanks

This could possibly be protected with a dpkg --compare-versions, the
check_divert function is still present in sysv-rc.postinst so may as well do
this here instead of adding a postinst to insserv.

From ba1746e211413b07d57c6ee4906260cb0fd81305 Mon Sep 17 00:00:00 2001
From: Kel Modderman <k...@otaku42.de>
Date: Mon, 23 Apr 2012 20:38:40 +1000
Subject: [PATCH] Unconditionally remove diversion of update-rc.d to
 update-rc.d-insserv.

---
 debian/sysv-rc.postinst |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/debian/sysv-rc.postinst b/debian/sysv-rc.postinst
index 24243c9..cbc60fb 100644
--- a/debian/sysv-rc.postinst
+++ b/debian/sysv-rc.postinst
@@ -164,6 +164,12 @@ try_to_convert() {
 
 case "$1" in
     configure)
+       if check_divert status /usr/sbin/update-rc.d \
+               /usr/sbin/update-rc.d-insserv ; then
+               check_divert false /usr/sbin/update-rc.d \
+                       /usr/sbin/update-rc.d-insserv
+       fi
+
        if dpkg --compare-versions "$2" lt "2.88dsf-23"; then
            rm -f /etc/init.d/.legacy-bootordering
        fi
-- 
1.7.10




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to