aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-06-20 12:18:28 +0100
committerMike McQuaid2014-06-20 12:18:28 +0100
commit45f5f33931ca5b6d3bf2a79a3f9eb21f34b1fdd8 (patch)
tree047fe90b2baad3ee7ac443baff75a246513c09f7 /Library
parentb0caede328b5181106451025df74a456276b76cf (diff)
downloadhomebrew-45f5f33931ca5b6d3bf2a79a3f9eb21f34b1fdd8.tar.bz2
Revert "xcode: add new package ID for Mavericks."
This reverts commit b0caede328b5181106451025df74a456276b76cf. Fixes #30299.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/os/mac/xcode.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb
index cdc9b54d6..7d8f12796 100644
--- a/Library/Homebrew/os/mac/xcode.rb
+++ b/Library/Homebrew/os/mac/xcode.rb
@@ -146,8 +146,7 @@ module OS
STANDALONE_PKG_ID = "com.apple.pkg.DeveloperToolsCLILeo"
FROM_XCODE_PKG_ID = "com.apple.pkg.DeveloperToolsCLI"
- MAVERICKS_PKG_IDS = ["com.apple.pkg.CLTools_Base",
- "com.apple.pkg.CLTools_Executables"]
+ MAVERICKS_PKG_ID = "com.apple.pkg.CLTools_Executables"
MAVERICKS_PKG_PATH = "/Library/Developer/CommandLineTools"
# Returns true even if outdated tools are installed, e.g.
@@ -182,7 +181,7 @@ module OS
end
def detect_version
- [*MAVERICKS_PKG_IDS, STANDALONE_PKG_ID, FROM_XCODE_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