[Lunar-commits] CVS: theedge/var/lib/lunar/functions moonbase.lunar, 1.14, 1.15

Jon South striker at lunar-linux.org
Mon Feb 23 18:26:58 GMT 2004


Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory dbguin.lunar-linux.org:/tmp/cvs-serv3483

Modified Files:
	moonbase.lunar 
Log Message:
submitting fix for new/removed modules code

Index: moonbase.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/moonbase.lunar,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- moonbase.lunar	5 Dec 2003 10:56:41 -0000	1.14
+++ moonbase.lunar	23 Feb 2004 18:26:56 -0000	1.15
@@ -41,6 +41,10 @@
 
   push_uniq_id
 
+  # Cache our module index before moonbase is removed.
+  TMP_MODULE_INDEX=$(temp_create "module-index")
+  cp $MODULE_INDEX $TMP_MODULE_INDEX
+
   if download_module $MODULE ; then
     echo -e "${MESSAGE_COLOR}Preparing to install ${FILE_COLOR}${SOURCE}" \
             "${DEFAULT_COLOR}${MESSAGE_COLOR}...${DEFAULT_COLOR}"       &&
@@ -70,8 +74,6 @@
       add_module $MODULE installed $VERSION $(du -hs $SYSTEM_MOONBASE | cut -f1)
    
       # get ready to regenerate the module index cache file
-      TMP_MODULE_INDEX=$(temp_create "module-index")
-      cp $MODULE_INDEX $TMP_MODULE_INDEX
       if [ -f "$MODULE_INDEX" ]; then
         rm -f $MODULE_INDEX
       fi



More information about the Lunar-commits mailing list