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>
Showing
- Library/Homebrew/cmd/doctor.rb 2 additions, 3 deletionsLibrary/Homebrew/cmd/doctor.rb
- Library/Homebrew/exceptions.rb 1 addition, 1 deletionLibrary/Homebrew/exceptions.rb
- Library/Homebrew/os/mac.rb 5 additions, 0 deletionsLibrary/Homebrew/os/mac.rb
- Library/Homebrew/os/mac/xcode.rb 1 addition, 1 deletionLibrary/Homebrew/os/mac/xcode.rb
Please register or sign in to comment