Skip to content
Snippets Groups Projects
Commit fe68abf9 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

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


Closes Homebrew/homebrew#41589.

Closes Homebrew/homebrew#41597.

Signed-off-by: default avatarMike McQuaid <mike@mikemcquaid.com>
parent 9011060c
No related branches found
No related tags found
No related merge requests found
...@@ -269,13 +269,28 @@ if MacOS.version >= "10.9" ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment