[Lunar-commits] CVS: theedge/var/lib/lunar/functions modules.lunar, 1.54, 1.55

Auke Kok sofar at lunar-linux.org
Mon Apr 4 11:22:30 UTC 2005


Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory espresso.foo-projects.org:/home/sofar/active/theedge/var/lib/lunar/functions

Modified Files:
	modules.lunar 
Log Message:
Replacing an expensive call with efficient code


Index: modules.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/modules.lunar,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- modules.lunar	4 Apr 2005 11:12:00 -0000	1.54
+++ modules.lunar	4 Apr 2005 11:22:28 -0000	1.55
@@ -428,9 +428,9 @@
   fi
 
   verbose_msg "updating lunar state files after module installation"
-  remove_module "$1"                                          &&
   lock_file $MODULE_STATUS_BACKUP                             &&
   lock_file $MODULE_STATUS                                    &&
+  grep -v "^$1:" $MODULE_STATUS_BACKUP > $MODULE_STATUS 2>/dev/null &&
   echo "$1:$(date -u +%Y%m%d):$2:$3:$4" >> $MODULE_STATUS     &&
   cp $MODULE_STATUS $MODULE_STATUS_BACKUP                     &&
   unlock_file $MODULE_STATUS                                  &&



More information about the Lunar-commits mailing list