Skip to content
Snippets Groups Projects
Commit 0f529dae authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #1573 from sorin-ionescu/fix-xcode-version-comparison

Fix macOS version comparison
parents a35d0fe8 282c0a30
No related branches found
No related tags found
No related merge requests found
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment