From 802402ee34d742f8c292218cd80bb1b1258ff634 Mon Sep 17 00:00:00 2001 From: Andrew Janke <andrew@apjanke.net> Date: Sun, 16 Oct 2016 19:10:46 -0400 Subject: [PATCH] install: prune build-only deps of deps This avoids needlessly installing build-time dependencies of dependencies which are not themselves being built from source. --- Library/Homebrew/formula_installer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 7bf07a5ffd..a47ceffe70 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? -- GitLab