Skip to content
Snippets Groups Projects
Commit 047c8eb9 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

CLT: correctly find Mavericks CLT PKG.

Closes Homebrew/homebrew#23445.
parent 1be35f03
No related branches found
No related tags found
No related merge requests found
......@@ -164,6 +164,7 @@ module OS
STANDALONE_PKG_ID = "com.apple.pkg.DeveloperToolsCLILeo"
FROM_XCODE_PKG_ID = "com.apple.pkg.DeveloperToolsCLI"
MAVERICKS_PKG_ID = "com.apple.pkg.CLTools_Executables"
MAVERICKS_PKG_PATH = Pathname.new("/Library/Developer/CommandLineTools")
# True if:
......@@ -201,7 +202,7 @@ module OS
end
def detect_version
[STANDALONE_PKG_ID, FROM_XCODE_PKG_ID].find do |id|
[STANDALONE_PKG_ID, FROM_XCODE_PKG_ID, MAVERICKS_PKG_ID].find do |id|
version = MacOS.pkgutil_info(id)[/version: (.+)$/, 1]
return version if version
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment