Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

FormulaInstaller: skip build-time deps for bottles

  • Loading branch information...
commit fffc46c51283855cb4075cbe7f7192bb5ed443b9 1 parent 0579f16
Jack Nagel authored

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. +5 0 Library/Homebrew/formula_installer.rb
5 Library/Homebrew/formula_installer.rb
@@ -104,6 +104,8 @@ def check_requirements
104 104 f.recursive_requirements.reject(&:satisfied?)
105 105 end
106 106
  107 + needed_reqs.reject!(&:build?) if install_bottle
  108 +
107 109 unless needed_reqs.empty?
108 110 puts needed_reqs.map(&:message) * "\n"
109 111 fatals = needed_reqs.select(&:fatal?)
@@ -116,6 +118,9 @@ def dep_needed? dep
116 118 if dep_f.installed?
117 119 # If the dep is already installed, skip it.
118 120 false
  121 + elsif install_bottle and dep.build?
  122 + # We skip build-time deps when installing bottles.
  123 + false
119 124 else
120 125 # Otherwise, we need to install it.
121 126 true

0 comments on commit fffc46c

Please sign in to comment.
Something went wrong with that request. Please try again.