diff options
| author | Mike McQuaid | 2016-01-09 10:30:44 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2016-01-09 10:30:44 +0000 |
| commit | a46fa38ea7bf9ca609cd007e7586ae1f670b309f (patch) | |
| tree | 6ed452582e9a9f125afab647e4eb2b3e99460bad /Library/Homebrew | |
| parent | 7076ed890a1eee10c94791e7557ab16769ab80ef (diff) | |
| download | brew-a46fa38ea7bf9ca609cd007e7586ae1f670b309f.tar.bz2 | |
diagnostic: warn on outdated OS X versions.
We don't have CI or new bottles for them so they aren't supported well
so we should warn users.
Closes Homebrew/homebrew#47812.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/diagnostic.rb | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index 3dd7f566f..7e3c5e491 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -304,11 +304,19 @@ module Homebrew end def check_for_unsupported_osx - if !ARGV.homebrew_developer? && OS::Mac.prerelease? then <<-EOS.undent - You are using OS X #{MacOS.version}. - We do not provide support for this pre-release version. - You may encounter build failures or other breakages. - EOS + return if ARGV.homebrew_developer? + if OS::Mac.prerelease? + <<-EOS.undent + You are using OS X #{MacOS.version}. + We do not provide support for this pre-release version. + You may encounter build failures or other breakages. + EOS + elsif OS::Mac.outdated_release? + <<-EOS.undent + You are using OS X #{MacOS.version}. + We (and Apple) do not provide support for this old version. + You may encounter build failures or other breakages. + EOS end end |
