From 126b1c77e36cc2336f26dcaef4512418353b5562 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 7 Jul 2012 11:59:01 -0700 Subject: 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) --- Library/Homebrew/cmd/doctor.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Library') 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. -- cgit v1.2.3