diff options
| author | Mike McQuaid | 2015-07-11 14:28:20 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-07-13 08:11:06 -0700 |
| commit | fe68abf987585a40ff06afcb2c0ef6c046630bb7 (patch) | |
| tree | 578c586ab16a57d814eebe540711187f3d51c409 /Library/Homebrew/cmd | |
| parent | 9011060c00343dfb7861be1f1810f62a9320475e (diff) | |
| download | brew-fe68abf987585a40ff06afcb2c0ef6c046630bb7.tar.bz2 | |
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>
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 09a4e7bb2..082c6e06f 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -269,13 +269,28 @@ if MacOS.version >= "10.9" end end - 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 + # TODO: remove when 10.11 is released + if MacOS.version >= "10.11" + 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 + 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 |
