aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2016-11-28 08:46:20 +0000
committerGitHub2016-11-28 08:46:20 +0000
commit0f529dae1043639058130092cf35e68d18907cb8 (patch)
tree3b5fd3be44048f47596406304265eff73fcd45d9
parenta35d0fe8f04392373cf919d6757dda0219ae0c53 (diff)
parent282c0a30b61edc46c22b0b1d50ea59d275b64a63 (diff)
downloadbrew-0f529dae1043639058130092cf35e68d18907cb8.tar.bz2
Merge pull request #1573 from sorin-ionescu/fix-xcode-version-comparison1.1.2
Fix macOS version comparison
-rw-r--r--Library/Homebrew/os/mac/xcode.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb
index 67cd8f54d..84b270891 100644
--- a/Library/Homebrew/os/mac/xcode.rb
+++ b/Library/Homebrew/os/mac/xcode.rb
@@ -256,7 +256,7 @@ module OS
return MacOS::Xcode.version if MacOS::Xcode.installed? && Xcode::Version.new(MacOS::Xcode.version) < "3.0"
[MAVERICKS_PKG_ID, MAVERICKS_NEW_PKG_ID, STANDALONE_PKG_ID, FROM_XCODE_PKG_ID].find do |id|
- if Xcode::Version.new(MacOS.version) >= :mavericks.to_s
+ if MacOS.version >= :mavericks
next unless File.exist?("#{MAVERICKS_PKG_PATH}/usr/bin/clang")
end
version = MacOS.pkgutil_info(id)[/version: (.+)$/, 1]