diff options
| author | Max Howell | 2012-08-31 10:20:20 -0400 |
|---|---|---|
| committer | Max Howell | 2012-08-31 10:22:11 -0400 |
| commit | b98c4792d0aeca67df509802d376e866bcf3bcd0 (patch) | |
| tree | 11a18444a4bf4fbf39e2e5ca8b5faf6d5db2a16e /Library/Homebrew/cmd/install.rb | |
| parent | 1555436f70162a2da6dc0b4b96008c21f1de2a1a (diff) | |
| download | brew-b98c4792d0aeca67df509802d376e866bcf3bcd0.tar.bz2 | |
Doctor check for unlicensed Xcode
Checking the license text is probably the most future proofed method. Though for future reference other possible methods are listed in the below ticket.
Closes Homebrew/homebrew#14558.
Diffstat (limited to 'Library/Homebrew/cmd/install.rb')
| -rw-r--r-- | Library/Homebrew/cmd/install.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index 85b502d1d..b01866958 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -37,8 +37,11 @@ module Homebrew extend self def check_xcode require 'cmd/doctor' - xcode = Checks.new.check_for_latest_xcode - opoo xcode unless xcode.nil? + checks = Checks.new + %w{check_for_latest_xcode check_xcode_license_approved}.each do |check| + out = checks.send(check) + opoo out unless out.nil? + end end def check_macports |
