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

Petter Reinholdtsen pere at alioth.debian.org
Thu Aug 27 22:01:04 UTC 2009


Author: pere
Date: 2009-08-27 22:01:02 +0000 (Thu, 27 Aug 2009)
New Revision: 1659

Modified:
   sysvinit/trunk/debian/sysv-rc.postinst
Log:
Always remove log file generated when checking if it is safe to migrate.

Modified: sysvinit/trunk/debian/sysv-rc.postinst
===================================================================
--- sysvinit/trunk/debian/sysv-rc.postinst	2009-08-27 19:24:25 UTC (rev 1658)
+++ sysvinit/trunk/debian/sysv-rc.postinst	2009-08-27 22:01:02 UTC (rev 1659)
@@ -89,10 +89,10 @@
     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/$/, /')
-	rm $logfile
 	retval=0
 	add_problematic "$msg"
     fi
+    rm $logfile
     return $retval
 }
 




More information about the Pkg-sysvinit-commits mailing list