Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

FormulaInstaller: skip build-time deps for bottles

  • Loading branch information...
commit fffc46c51283855cb4075cbe7f7192bb5ed443b9 1 parent 0579f16
@jacknagel authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 Library/Homebrew/formula_installer.rb
View
5 Library/Homebrew/formula_installer.rb
@@ -104,6 +104,8 @@ def check_requirements
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 @@ def dep_needed? dep
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
Please sign in to comment.
Something went wrong with that request. Please try again.