diff options
| author | Misty De Meo | 2015-08-21 11:04:22 -0700 |
|---|---|---|
| committer | Misty De Meo | 2015-08-21 11:04:22 -0700 |
| commit | 727239e12f98fafad39aa4f70b37c6d5bf4db1cc (patch) | |
| tree | 6019e597c18c9ea366e7e45be0a3e6fc19335ae1 /Library/Homebrew/cmd/install.rb | |
| parent | 1da2855c0b1d884d18944307bdbbe2b64c4dd47d (diff) | |
| parent | 04a0b2aafe2062701be4028f408d0bee15f3815d (diff) | |
| download | brew-727239e12f98fafad39aa4f70b37c6d5bf4db1cc.tar.bz2 | |
Merge bottle install without Xcode branch
Merge branch 'bottle_hooks'
Diffstat (limited to 'Library/Homebrew/cmd/install.rb')
| -rw-r--r-- | Library/Homebrew/cmd/install.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index 19c826d44..47735a23c 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -38,6 +38,10 @@ module Homebrew end end + # if the user's flags will prevent bottle only-installations when no + # developer tools are available, we need to stop them early on + FormulaInstaller.prevent_build_flags unless MacOS.has_apple_developer_tools? + ARGV.formulae.each do |f| # head-only without --HEAD is an error if !ARGV.build_head? && f.stable.nil? && f.devel.nil? @@ -131,10 +135,10 @@ module Homebrew checks = Checks.new %w[ check_for_unsupported_osx + check_for_bad_install_name_tool check_for_installed_developer_tools check_xcode_license_approved check_for_osx_gcc_installer - check_for_bad_install_name_tool ].each do |check| out = checks.send(check) opoo out unless out.nil? @@ -161,7 +165,7 @@ module Homebrew def perform_preinstall_checks check_ppc check_writable_install_location - check_xcode + check_xcode if MacOS.has_apple_developer_tools? check_cellar end |
