diff options
| author | Misty De Meo | 2013-12-14 16:20:30 -0800 |
|---|---|---|
| committer | Misty De Meo | 2013-12-14 16:21:00 -0800 |
| commit | d1d6451a6a72d79b3eb88f3010cf6c3380ccd002 (patch) | |
| tree | aa4c94b7cffd86bd6504d63a7471b27fb5f74e82 /Library/Homebrew | |
| parent | a1728a817406c51c7a5f42284b12458d0ee21d59 (diff) | |
| download | brew-d1d6451a6a72d79b3eb88f3010cf6c3380ccd002.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')
| -rw-r--r-- | Library/Homebrew/os/mac/xcode.rb | 2 |
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 |
