Skip to content

Commit

Permalink
Merge pull request #1573 from sorin-ionescu/fix-xcode-version-comparison
Browse files Browse the repository at this point in the history
Fix macOS version comparison
  • Loading branch information
MikeMcQuaid authored Nov 28, 2016
2 parents a35d0fe + 282c0a3 commit 0f529da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/os/mac/xcode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def detect_version
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]
Expand Down

0 comments on commit 0f529da

Please sign in to comment.