diff options
| author | Max Howell | 2009-09-10 14:11:04 +0100 |
|---|---|---|
| committer | Max Howell | 2009-09-10 19:23:03 +0100 |
| commit | fdaa267fb92e1652865083e1be11db06e8c94361 (patch) | |
| tree | 13152933d452d9ff9c3121a3921fab99793af1a0 /Library | |
| parent | 0a31190fdca5fd8619263e66212d74d4c2f56a74 (diff) | |
| download | brew-fdaa267fb92e1652865083e1be11db06e8c94361.tar.bz2 | |
Don't install dependencies that are already installed
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brew.h.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index 496e7afc0..de5048cc3 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -155,7 +155,7 @@ def expand_deps fae f.deps.each do |name| f = Formula.factory name deps << expand_deps(f) if f.deps # hideous inefficient - deps << f + deps << f unless f.installed? end when Hash # TODO implement optional and recommended @@ -166,6 +166,7 @@ def expand_deps fae end deps << f end + # TODO much more efficient to use a set and not recurse stuff already done return deps.flatten.uniq end |
