[Lunar-commits] r27015 - lunar/trunk/var/lib/lunar/functions

Stefan Wold ratler at lunar-linux.org
Mon Mar 17 08:14:16 CET 2008


Author: ratler
Date: 2008-03-17 08:14:16 +0100 (Mon, 17 Mar 2008)
New Revision: 27015

Modified:
   lunar/trunk/var/lib/lunar/functions/config.lunar
Log:
Fixing the fix back in January.
The sedit assume the line does NOT start with a space which is a false assumption for local/config,
this cause duplicates in local/config every time a new value is changed or set.
Also removed the unused $LINE


Modified: lunar/trunk/var/lib/lunar/functions/config.lunar
===================================================================
--- lunar/trunk/var/lib/lunar/functions/config.lunar	2008-03-12 16:35:38 UTC (rev 27014)
+++ lunar/trunk/var/lib/lunar/functions/config.lunar	2008-03-17 07:14:16 UTC (rev 27015)
@@ -40,9 +40,7 @@
 
 	lock_file $FILE &&
 	if [ -n "$LINE" ] ; then
-		# make sure we escape those ':' characters:
-		LINE=$(echo $LINE | sed 's/:/\\:/g')
-		sedit "/[^ ]$VAR=/d" $FILE
+		sedit "/$VAR=/d" $FILE
 	fi
 	echo "$NEW" >> $FILE
 	unlock_file $FILE



More information about the Lunar-commits mailing list