diff options
| author | Mike McQuaid | 2014-06-20 19:48:09 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-06-20 19:49:32 +0100 |
| commit | 41aa112660fc2b52a7b83bb67454c706cda971ff (patch) | |
| tree | 1f000f8c8ca78d8fb8c6c15f739158eb988c27bc /Library | |
| parent | 510d8594bee5749320177fd6d0a9c6f56d43384a (diff) | |
| download | homebrew-41aa112660fc2b52a7b83bb67454c706cda971ff.tar.bz2 | |
Revert "formula_installer: bottle against Homebrew Python."
This reverts commit dc53c331ebb3bf752655a6e2147ea90c38a22e2f.
Closes #30302.
Closes #30305.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 657599636..e96ac69e9 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -58,6 +58,14 @@ class FormulaInstaller return true if f.local_bottle_path return false unless f.bottle && f.pour_bottle? + f.requirements.each do |req| + next if req.optional? || req.pour_bottle? + if install_bottle_options[:warn] + ohai "Building source; bottle blocked by #{req} requirement" + end + return false + end + unless f.bottle.compatible_cellar? if install_bottle_options[:warn] opoo "Building source; cellar of #{f}'s bottle is #{f.bottle.cellar}" @@ -257,8 +265,7 @@ class FormulaInstaller Requirement.prune elsif req.build? && dependent != f && install_bottle_for_dep?(dependent, build) Requirement.prune - elsif req.satisfied? && !(pour_bottle? || build_bottle?) \ - && !(!req.optional? && req.default_formula?) + elsif req.satisfied? Requirement.prune elsif req.default_formula? dep = req.to_dependency |
