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