doctor: don't point to App Store for Xcode on 10.11.

Closes Homebrew/homebrew#41589.

Closes Homebrew/homebrew#41597.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Mike McQuaid 2015-07-11 14:28:20 +01:00
parent 9011060c00
commit fe68abf987

View File

@ -269,13 +269,28 @@ if MacOS.version >= "10.9"
end end
end end
def check_xcode_up_to_date # TODO: remove when 10.11 is released
if MacOS::Xcode.installed? && MacOS::Xcode.outdated? if MacOS.version >= "10.11"
<<-EOS.undent def check_xcode_up_to_date
Your Xcode (#{MacOS::Xcode.version}) is outdated if MacOS::Xcode.installed? && MacOS::Xcode.outdated?
Please update to Xcode #{MacOS::Xcode.latest_version}. <<-EOS.undent
Xcode can be updated from the App Store. Your Xcode (#{MacOS::Xcode.version}) is outdated
EOS Please update to Xcode #{MacOS::Xcode.latest_version}.
Xcode can be updated from
https://developer.apple.com/downloads
EOS
EOS
end
end
else
def check_xcode_up_to_date
if MacOS::Xcode.installed? && MacOS::Xcode.outdated?
<<-EOS.undent
Your Xcode (#{MacOS::Xcode.version}) is outdated
Please update to Xcode #{MacOS::Xcode.latest_version}.
Xcode can be updated from the App Store.
EOS
end
end end
end end