[Lunar-commits] <lunar> Merge pull request #9 from cavalier38/find_depends

Auke Kok sofar+github at foo-projects.org
Thu Jul 12 04:25:52 CEST 2012


commit d4a8f00378dde112f1547956239018959b572a88
Author: Auke Kok <sofar+github at foo-projects.org>
Date: Wed, 11 Jul 2012 19:25:52 -0700
URL: https://github.com/lunar-linux/lunar/commit/d4a8f00378dde112f1547956239018959b572a88

Merge pull request #9 from cavalier38/find_depends

Don't list optional depends in find_depends.
---
  libs/depends.lunar                                           +2/-4     
  1 files changed, 0 insertions (+), 0 deletions (-)

--- a/libs/depends.lunar
+++ b/libs/depends.lunar
@@ -24,6 +24,7 @@
 # function : find_depends
 # usage    : find_depends "module name"
 # purpose  : recursive dependency finder, no need to be installed
+# NOTE: this only finds required dependencies!
 function find_depends() {
   local TMP_FDEPS
   debug_msg "find_depends ($@)"
@@ -43,7 +44,7 @@ function find_depends() {
       optional_depends() {
 	# No quotes, this prevent us from parsing newlines
 	# if someone by accident add a newline in optional_depends
-	echo $1
+	:
       }
 
       # yeah, this sucks:
@@ -66,9 +67,6 @@ function find_depends() {
         if grep -q "^$1:$DEP:required:" "$DEPENDS_CACHE" ; then
           echo "$DEP"
           find_depends_intern "$DEP"
-        elif module_installed "$DEP" ; then
-          echo "$DEP"
-          find_depends_intern "$DEP"
         fi
       fi
     done




More information about the Lunar-commits mailing list