[Pkg-sysvinit-commits] r1762 - sysvinit/trunk/debian

Petter Reinholdtsen pere at alioth.debian.org
Thu Sep 10 21:36:51 UTC 2009


Author: pere
Date: 2009-09-10 21:36:51 +0000 (Thu, 10 Sep 2009)
New Revision: 1762

Modified:
   sysvinit/trunk/debian/changelog
   sysvinit/trunk/debian/sysv-rc.postinst
Log:
Remove old update-rc.d action files for removed script during upgrade.

Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog	2009-09-10 20:22:53 UTC (rev 1761)
+++ sysvinit/trunk/debian/changelog	2009-09-10 21:36:51 UTC (rev 1762)
@@ -25,7 +25,8 @@
     no longer needed according to Michael Bunk.  Patch from Michael
     Biebl.
   * Remove information about scripts in /var/lib/update-rc.d/ when
-    their runlevel symlinks are removed (Closes: #545949).
+    their runlevel symlinks are removed (Closes: #545949).  Remove
+    such files left behind earlier during upgrade.
 
  -- Petter Reinholdtsen <pere at debian.org>  Sun, 06 Sep 2009 17:13:33 +0200
 

Modified: sysvinit/trunk/debian/sysv-rc.postinst
===================================================================
--- sysvinit/trunk/debian/sysv-rc.postinst	2009-09-10 20:22:53 UTC (rev 1761)
+++ sysvinit/trunk/debian/sysv-rc.postinst	2009-09-10 21:36:51 UTC (rev 1762)
@@ -181,6 +181,12 @@
 		echo "error: Problems detected: $PROBLEMATIC" 1>&2
 	    fi
 	fi
+	if dpkg --compare-versions "$2" lt 2.87dsf-5 ; then
+	    removedfiles=$(grep -l 'remove$' /var/lib/update-rc.d/*)
+	    if [ "$removedfiles" ] ; then
+		rm $removedfiles
+	    fi
+	fi
 	;;
     *)
 	;;




More information about the Pkg-sysvinit-commits mailing list