aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os/mac/xcode.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/os/mac/xcode.rb')
-rw-r--r--Library/Homebrew/os/mac/xcode.rb14
1 files changed, 3 insertions, 11 deletions
diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb
index b2e5611e7..c55ef0f27 100644
--- a/Library/Homebrew/os/mac/xcode.rb
+++ b/Library/Homebrew/os/mac/xcode.rb
@@ -172,18 +172,10 @@ module OS
MAVERICKS_PKG_ID = "com.apple.pkg.CLTools_Executables"
MAVERICKS_PKG_PATH = Pathname.new("/Library/Developer/CommandLineTools")
- # True if:
- # - Xcode < 4.3 is installed. The tools are found under /usr.
- # - The "Command Line Tools" package has been installed.
- # For OS X < 10.9, the tools are found under /usr. 10.9 always
- # includes tools there, which run the real tools inside Xcode on
- # Xcode-only installs, so it's necessary to look elsewhere.
+ # Returns true even if outdated tools are installed, e.g.
+ # tools from Xcode 4.x on 10.9
def installed?
- if MacOS.version < :mavericks
- usr_dev_tools?
- else
- mavericks_dev_tools?
- end
+ !!detect_version
end
def mavericks_dev_tools?