CVS: theedge/var/lib/lunar/functions install.lunar,1.7,1.8

sofar at lunar-linux.org sofar at lunar-linux.org
Fri Jul 25 08:52:19 GMT 2003


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

Modified Files:
	install.lunar 
Log Message:
Polishing up resurrect:

- it is now "autoresurrect"
- lunar resurrect $MODULE is the way to force a resurrect
- resurrect is skipped with -c
- resurrect is skipped when the module is already installed, because
  we rather want a recompile then to make sure...

this should be the end of the resurrect rewrite.


Index: install.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/install.lunar,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- install.lunar	23 Jul 2003 22:54:16 -0000	1.7
+++ install.lunar	25 Jul 2003 08:52:16 -0000	1.8
@@ -386,9 +386,12 @@
   fi
 
   # resurrect if we can, but not is -c was issued
-  if [ "$AUTORESURRECT" == "on" -a -n "$COMPILE" ] ; then
-    if resurrect $MODULE ; then
-      return 0
+  if [ "$AUTORESURRECT" == "on" -a -z "$COMPILE" ] ; then
+    # we also do not resurrect if $MODULE is currently installed!
+    if ! module_installed $MODULE ; then
+      if resurrect $MODULE ; then
+        return 0
+      fi
     fi
   fi
 




More information about the Lunar-commits mailing list