From d1d6451a6a72d79b3eb88f3010cf6c3380ccd002 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Sat, 14 Dec 2013 16:20:30 -0800 Subject: [PATCH] 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. --- Library/Homebrew/os/mac/xcode.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb index 80f93ab8f8..72e937576d 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