[Lunar-commits] CVS: theedge/var/lib/lunar/functions depends.lunar, 1.24, 1.25

Auke Kok sofar at lunar-linux.org
Fri Jan 9 15:38:20 GMT 2004


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

Modified Files:
	depends.lunar 
Log Message:
Reverting this back since it'll lopp indefinately... BAH, sorry, perhaps someone wants to dig into this look, I didn't have enough time to track the problem down.


Index: depends.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/depends.lunar,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- depends.lunar	9 Jan 2004 15:16:12 -0000	1.24
+++ depends.lunar	9 Jan 2004 15:38:18 -0000	1.25
@@ -71,21 +71,12 @@
   debug_msg "sort_by_dependency ($@)"
 
   recurse() {
-    depends () {
-      echo $1
-    }
-    optional_depends() {
-      # we really don't care about optional or not here
-      echo $1
-    }
     for MOD in $* ; do
-      LIST=$(run_module_file $MOD DEPENDS)
-      if [ -n "$LIST" ] ; then
-        for DEP in $LIST ; do
-	  echo $MOD $DEP
-	done
-        recurse $LIST
-      fi
+      LIST=$(grep ^$MOD: $DEPENDS_STATUS | grep ":on:" | cut -d: -f2)
+      for DEP in $LIST ; do
+        echo $MOD $DEP
+      done
+      recurse $LIST
     done
   }
 



More information about the Lunar-commits mailing list