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

Petter Reinholdtsen pere at alioth.debian.org
Sat Sep 5 19:58:43 UTC 2009


Author: pere
Date: 2009-09-05 19:58:43 +0000 (Sat, 05 Sep 2009)
New Revision: 1725

Modified:
   sysvinit/trunk/debian/changelog
   sysvinit/trunk/debian/sysv-rc.postinst
Log:
Fix sysv-rc postinst to not fail when insserv report more
than one error (Closes: #545205)

Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog	2009-09-05 19:09:27 UTC (rev 1724)
+++ sysvinit/trunk/debian/changelog	2009-09-05 19:58:43 UTC (rev 1725)
@@ -2,6 +2,8 @@
 
   * Send all output from the sysv-rc postinst to stderr, to make sure
     we do not confuse debconf.
+  * Fix sysv-rc postinst to not fail when insserv report more
+    than one error (Closes: #545205)
 
  -- Petter Reinholdtsen <pere at debian.org>  Sat, 05 Sep 2009 21:07:36 +0200
 

Modified: sysvinit/trunk/debian/sysv-rc.postinst
===================================================================
--- sysvinit/trunk/debian/sysv-rc.postinst	2009-09-05 19:09:27 UTC (rev 1724)
+++ sysvinit/trunk/debian/sysv-rc.postinst	2009-09-05 19:58:43 UTC (rev 1725)
@@ -88,7 +88,7 @@
     insserv -nv > $logfile 2>&1 || true
     errstr='There is a loop between|loop involving service|already provided!|provides system facility|missing LSB tags'
     if egrep -q "$errstr" $logfile ; then
-	msg=$(egrep "$errstr" $logfile | sed 's/$/, /')
+	msg=$(egrep "$errstr" $logfile | sed 's/$/, /' | tr "\n" " ")
 	retval=0
 	add_problematic "$msg"
     fi




More information about the Pkg-sysvinit-commits mailing list