diff options
| author | Mike McQuaid | 2016-07-04 18:35:03 +0100 | 
|---|---|---|
| committer | GitHub | 2016-07-04 18:35:03 +0100 | 
| commit | 59074e91d69417f0cf00e4cc9d674431a1e5963f (patch) | |
| tree | 72a7d9b400e4c80f48710221a1e4773b59cbcf69 /Library/Homebrew/cmd/install.rb | |
| parent | a1b0ef1300ff8ac07ef904479b0321a2a5fc0368 (diff) | |
| download | brew-59074e91d69417f0cf00e4cc9d674431a1e5963f.tar.bz2 | |
diagnostic: more porting to generic OS. (#449)
Diffstat (limited to 'Library/Homebrew/cmd/install.rb')
| -rw-r--r-- | Library/Homebrew/cmd/install.rb | 12 | 
1 files changed, 3 insertions, 9 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index f105eede4..56cfbc24f 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -218,15 +218,9 @@ module Homebrew      raise "Cannot write to #{HOMEBREW_PREFIX}" unless HOMEBREW_PREFIX.writable_real? || HOMEBREW_PREFIX.to_s == "/usr/local"    end -  def check_xcode +  def check_development_tools      checks = Diagnostic::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 -    ].each do |check| +    checks.all_development_tools_checks.each do |check|        out = checks.send(check)        opoo out unless out.nil?      end @@ -252,7 +246,7 @@ module Homebrew    def perform_preinstall_checks      check_ppc      check_writable_install_location -    check_xcode if MacOS.has_apple_developer_tools? +    check_development_tools if DevelopmentTools.installed?      check_cellar    end  | 
