diff options
| author | Adam Vandenberg | 2012-07-07 11:59:01 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-07-07 11:59:01 -0700 |
| commit | 126b1c77e36cc2336f26dcaef4512418353b5562 (patch) | |
| tree | 746cd90d9e57e3b9251e7f2a23fba1e27013c809 /Library | |
| parent | f39d8eb88c3750f894d0446c9bd6e1b581187cd4 (diff) | |
| download | brew-126b1c77e36cc2336f26dcaef4512418353b5562.tar.bz2 | |
doctor: update xcode chceck
* 4.3.3 is the latest on 10.7
* Give up if we don't know what the latest is (10.8 and beyond)
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index f2f84b45f..3d45dc1a9 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -239,7 +239,13 @@ def check_for_latest_xcode latest_xcode = case MacOS.version when 10.5 then "3.1.4" when 10.6 then "3.2.6" - else "4.3" + when 10.7 then "4.3.3" + else nil + end + if latest_xcode.nil? + return <<-EOS.undent + Not sure what version of Xcode is the latest for OS X #{MacOS.version}. + EOS end if MacOS.xcode_installed? and MacOS.xcode_version < latest_xcode then <<-EOS.undent You have Xcode-#{MacOS.xcode_version}, which is outdated. |
