aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os/mac/xcode.rb
diff options
context:
space:
mode:
authorMisty De Meo2013-12-14 16:20:30 -0800
committerMisty De Meo2013-12-14 16:21:00 -0800
commit0d87f7ef4765de0512b694a0a1a6df755f6db39d (patch)
tree5416e7328acd946b3d33c7f8d7f6711680b4893a /Library/Homebrew/os/mac/xcode.rb
parent913f6c18876cfc8f4859e7ed7c9cc9d19d27c90b (diff)
downloadhomebrew-0d87f7ef4765de0512b694a0a1a6df755f6db39d.tar.bz2
CLT.version: check 10.9 CLT first
10.9 users might have older CLT receipts sitting around, which could result in bad pkgutil results. For example, before changing this, my `brew --config` was printing '1.0' (the 10.7 version) instead of '5.0.1.0.1.1382131676', the actual CLT I had installed.
Diffstat (limited to 'Library/Homebrew/os/mac/xcode.rb')
-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 80f93ab8f..72e937576 100644
--- a/Library/Homebrew/os/mac/xcode.rb
+++ b/Library/Homebrew/os/mac/xcode.rb
@@ -218,7 +218,7 @@ module OS
end
def detect_version
- [STANDALONE_PKG_ID, FROM_XCODE_PKG_ID, MAVERICKS_PKG_ID].find do |id|
+ [MAVERICKS_PKG_ID, STANDALONE_PKG_ID, FROM_XCODE_PKG_ID].find do |id|
version = MacOS.pkgutil_info(id)[/version: (.+)$/, 1]
return version if version
end