[Lunar-commits] CVS: theedge/sbin lin,1.88,1.89

Auke Kok sofar at lunar-linux.org
Sun Mar 13 18:19:14 UTC 2005


Update of /var/cvs/lunar/theedge/sbin
In directory espresso.foo-projects.org:/tmp/cvs-serv22052

Modified Files:
	lin 
Log Message:
Proposed consistency fix for lin/download queue creation: use find_depends()


Index: lin
===================================================================
RCS file: /var/cvs/lunar/theedge/sbin/lin,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -d -r1.88 -r1.89
--- lin	10 Dec 2004 11:00:01 -0000	1.88
+++ lin	13 Mar 2005 18:19:12 -0000	1.89
@@ -109,22 +109,14 @@
     # this runs as a background process, so we are off to step #3 right away
     if [ -z "$DEPS_ONLY" ] ; then
       verbose_msg "Spawning download manager"
-      need_source() {
-        for DEP in $(grep ^$1: $DEPENDS_STATUS | grep :on: | cut -d: -f2) ; do
-          if ! module_installed $DEP ; then
-	    need_source $DEP
-	    echo $DEP
-	  fi
-	done
-      }
       for M in $MODULES ; do
-        LIST="$(need_source $M | uniq) $LIST"
+        LIST="$(for D in `find_depends $M`; do if ! module_installed $D ; then echo $D ; fi ; done | uniq) $LIST"
       done
       verbose_msg "download queue: $LIST $MODULES"
       for M in $LIST $MODULES; do
           THIS_TEMP=$(temp_create "$M.download.log")
           rm $THIS_TEMP
-	  SAFE_M=$(echo $M | md5sum | awk '{print $1}')
+          SAFE_M=$(echo $M | md5sum | awk '{print $1}')
           eval TEMP_DOWNLOAD_LOG_$SAFE_M=$THIS_TEMP
       done
       (



More information about the Lunar-commits mailing list