Skip to content

Commit

Permalink
doctor: update xcode chceck
Browse files Browse the repository at this point in the history
* 4.3.3 is the latest on 10.7
* Give up if we don't know what the latest is (10.8 and beyond)
  • Loading branch information
adamv committed Jul 7, 2012
1 parent 3d322d6 commit eef917b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Library/Homebrew/cmd/doctor.rb
Expand Up @@ -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.
Expand Down

0 comments on commit eef917b

Please sign in to comment.