diff options
| author | Martin Afanasjew | 2015-10-23 00:07:12 +0200 | 
|---|---|---|
| committer | Mike McQuaid | 2015-10-23 12:34:44 +0100 | 
| commit | 30cad0608ff6c22051b5a1e0f3bf566d643bb673 (patch) | |
| tree | 7f513efa969e9dfd38d1f158cc2e968db6ab5902 /Library/Homebrew/exceptions.rb | |
| parent | 7c7b7bf97f2ed1a86b4a9edd12744e4d142949c4 (diff) | |
| download | brew-30cad0608ff6c22051b5a1e0f3bf566d643bb673.tar.bz2 | |
os: centralize check for pre-release OS X versions
Provide `OS::Mac.prerelease?` for pre-release checks and use it where
appropriate. This should simplify updating the test once a new OS X
release lands.
This also fixes a bug in `BuildError#dump`, where an empty warning
message was printed on El Capitan after a failed from-source build,
because the check there and the one in `check_for_unsupported_osx` were
out of sync.
Closes Homebrew/homebrew#45257.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
| -rw-r--r-- | Library/Homebrew/exceptions.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 29cd480d5..adb17fe57 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -251,7 +251,7 @@ class BuildError < RuntimeError        puts issues.map { |i| "#{i["title"]} #{i["html_url"]}" }.join("\n")      end -    if MacOS.version >= "10.11" +    if OS::Mac.prerelease?        require "cmd/doctor"        opoo Checks.new.check_for_unsupported_osx      end | 
