aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/formula_installer.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 6c2a48be9..373440ba8 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -104,6 +104,8 @@ class FormulaInstaller
f.recursive_requirements.reject(&:satisfied?)
end
+ needed_reqs.reject!(&:build?) if install_bottle
+
unless needed_reqs.empty?
puts needed_reqs.map(&:message) * "\n"
fatals = needed_reqs.select(&:fatal?)
@@ -116,6 +118,9 @@ class FormulaInstaller
if dep_f.installed?
# If the dep is already installed, skip it.
false
+ elsif install_bottle and dep.build?
+ # We skip build-time deps when installing bottles.
+ false
else
# Otherwise, we need to install it.
true