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

Auke Kok sofar at lunar-linux.org
Fri Apr 16 10:18:51 GMT 2004


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

Modified Files:
	modules.lunar 
Log Message:
Don't even try to check if we can't update them anyway...


Index: modules.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/modules.lunar,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- modules.lunar	11 Apr 2004 21:54:36 -0000	1.38
+++ modules.lunar	16 Apr 2004 10:18:49 -0000	1.39
@@ -131,12 +131,14 @@
 # purpose : checks if the index is up-to-date regarding to moonbase
 function check_module_index() {
   debug_msg "check_module_index ($@)"
-  if [ -n "$(find $MOONBASE -type f -name "DETAILS" -cnewer $MODULE_INDEX)" ] ; then
-    create_module_index
-    create_depends_cache
-    return 0
-  else
-    return 1
+  if [ -w $MODULE_INDEX ] ; then
+    if [ -n "$(find $MOONBASE -type f -name "DETAILS" -cnewer $MODULE_INDEX)" ] ; then
+      create_module_index
+      create_depends_cache
+      return 0
+    else
+      return 1
+    fi
   fi
 }
 



More information about the Lunar-commits mailing list