aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2015-06-16 20:02:10 -0400
committerJack Nagel2015-06-16 20:02:10 -0400
commit72cb403a56be7cae3cc385b83a6d6b6071c8b41f (patch)
tree8550b658e751ba54e77ca1d217aeb8a2e6edd6b3 /Library/Homebrew/cmd
parentf59b164733bcb1edb5644eac9733201a5e53cb86 (diff)
downloadbrew-72cb403a56be7cae3cc385b83a6d6b6071c8b41f.tar.bz2
Move 10.11 warning to doctor, pre-install, and post-failure
Fixes Homebrew/homebrew#40778.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/doctor.rb9
-rw-r--r--Library/Homebrew/cmd/install.rb1
2 files changed, 10 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index b66f3c878..a0bef5162 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -237,6 +237,15 @@ def check_for_broken_symlinks
end
end
+def check_for_unsupported_osx
+ if MacOS.version >= "10.11" 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 breakage.
+ EOS
+ end
+end
+
if MacOS.version >= "10.9"
def check_for_installed_developer_tools
unless MacOS::Xcode.installed? || MacOS::CLT.installed? then <<-EOS.undent
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index d37b10c91..7f685b706 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -112,6 +112,7 @@ module Homebrew
def check_xcode
checks = Checks.new
%w[
+ check_for_unsupported_osx
check_for_installed_developer_tools
check_xcode_license_approved
check_for_osx_gcc_installer