aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAndrew Janke2016-10-16 19:10:46 -0400
committerAndrew Janke2016-10-17 04:45:49 -0400
commit802402ee34d742f8c292218cd80bb1b1258ff634 (patch)
tree3f96f4323193a6a9a1c9a49fa922321fbc34808d /Library
parentde880f1e870d91dd838228de2987f9bd6d194aef (diff)
downloadbrew-802402ee34d742f8c292218cd80bb1b1258ff634.tar.bz2
install: prune build-only deps of deps
This avoids needlessly installing build-time dependencies of dependencies which are not themselves being built from source.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 7bf07a5ff..a47ceffe7 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -114,7 +114,7 @@ class FormulaInstaller
def install_bottle_for?(dep, build)
return pour_bottle? if dep == formula
- return false if build_from_source?
+ return false if ARGV.build_formula_from_source?(dep)
return false unless dep.bottle && dep.pour_bottle?
return false unless build.used_options.empty?
return false unless dep.bottle.compatible_cellar?