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

Auke Kok sofar at lunar-linux.org
Fri Oct 29 14:28:33 UTC 2004


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:
Extra bluntly running the check&&create module index in case $MODULE_INDEX is missing (the -w check would fail if it was missing)


Index: modules.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/modules.lunar,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- modules.lunar	29 Oct 2004 14:17:52 -0000	1.47
+++ modules.lunar	29 Oct 2004 14:28:31 -0000	1.48
@@ -129,14 +129,12 @@
 # purpose : checks if the index is up-to-date regarding to moonbase
 function check_module_index() {
   debug_msg "check_module_index ($@)"
-  if [ -w $MODULE_INDEX -a -w $DEPENDS_CACHE ] ; then
-    if [ ! -e $MODULE_INDEX -o ! -e $DEPENDS_CACHE -o -n "$(find $MOONBASE -type f -name "DETAILS" -cnewer $MODULE_INDEX)" ] ; then
-      create_module_index
-      create_depends_cache
-      return 0
-    else
-      return 1
-    fi
+  if [ ! -e $MODULE_INDEX -o ! -e $DEPENDS_CACHE -o -n "$(find $MOONBASE -type f -name "DETAILS" -cnewer $MODULE_INDEX)" ] ; then
+    create_module_index
+    create_depends_cache
+    return 0
+  else
+    return 1
   fi
 }
 



More information about the Lunar-commits mailing list