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

Petter Reinholdtsen pere at alioth.debian.org
Sun Sep 20 17:16:31 UTC 2009


Author: pere
Date: 2009-09-20 17:16:30 +0000 (Sun, 20 Sep 2009)
New Revision: 1783

Modified:
   sysvinit/trunk/debian/changelog
   sysvinit/trunk/debian/sysv-rc.postinst
Log:
Quiet down sysv-rc postinst to not give error when no file exist
in /var/lib/update-rc.d.  Discovered from piuparts.

Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog	2009-09-19 21:29:01 UTC (rev 1782)
+++ sysvinit/trunk/debian/changelog	2009-09-20 17:16:30 UTC (rev 1783)
@@ -5,6 +5,8 @@
     /etc/fstab (Closes: #512237, 481028).  Patch from Adrian Bridgett.
   * Add startpar patch 05_pri_kdm_gdm.patch to try to get gdm and kdm
     to start earlier when concurrent booting is enabled.
+  * Quiet down sysv-rc postinst to not give error when no file exist
+    in /var/lib/update-rc.d.  Discovered from piuparts.
 
  -- Petter Reinholdtsen <pere at debian.org>  Fri, 18 Sep 2009 22:12:48 +0200
 

Modified: sysvinit/trunk/debian/sysv-rc.postinst
===================================================================
--- sysvinit/trunk/debian/sysv-rc.postinst	2009-09-19 21:29:01 UTC (rev 1782)
+++ sysvinit/trunk/debian/sysv-rc.postinst	2009-09-20 17:16:30 UTC (rev 1783)
@@ -182,7 +182,7 @@
 	    fi
 	fi
 	if dpkg --compare-versions "$2" lt 2.87dsf-5 ; then
-	    removedfiles=$(grep -l 'remove$' /var/lib/update-rc.d/* || true)
+	    removedfiles=$(grep -l 'remove$' /var/lib/update-rc.d/* 2>/dev/null || true)
 	    if [ "$removedfiles" ] ; then
 		rm $removedfiles
 	    fi




More information about the Pkg-sysvinit-commits mailing list