aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-01-23 00:26:25 -0600
committerJack Nagel2013-01-26 12:14:44 -0600
commitea4188ecda25195421054973f326b14307e789fa (patch)
treee283d46bcfe1212f35c891431a2e6f0ef2bf15e6 /Library
parent43d9f480af52f7fa18968d3e5b94f52709195ed7 (diff)
downloadbrew-ea4188ecda25195421054973f326b14307e789fa.tar.bz2
FormulaInstaller: skip build-time deps for bottles
Diffstat (limited to 'Library')
-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