aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dependency_collector.rb
diff options
context:
space:
mode:
authorJack Nagel2014-04-02 19:58:15 -0500
committerJack Nagel2014-04-02 19:58:15 -0500
commitbb5e0812fb387f2b2a920c9a89e9750fe28943f8 (patch)
tree2ec6477924a287c3fc2e5d7b26bdbfd5d927088b /Library/Homebrew/dependency_collector.rb
parent55b0ee787ae88c4bd1087040984303ba53d33c78 (diff)
downloadbrew-bb5e0812fb387f2b2a920c9a89e9750fe28943f8.tar.bz2
Add fast path for CVS dep
The search mechanism in MacOS::Xcode is very slow. It requires shelling out at least twice, and possibly a third time (in the CLT-only case). Calling provides_cvs? activates this in order to determine the Xcode version. But if we know that there isn't an Xcode available for the current OS that meets the criteria, we can avoid this check entirely.
Diffstat (limited to 'Library/Homebrew/dependency_collector.rb')
-rw-r--r--Library/Homebrew/dependency_collector.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/dependency_collector.rb b/Library/Homebrew/dependency_collector.rb
index f0df90065..24214b188 100644
--- a/Library/Homebrew/dependency_collector.rb
+++ b/Library/Homebrew/dependency_collector.rb
@@ -170,7 +170,7 @@ class DependencyCollector
when strategy <= BazaarDownloadStrategy
Dependency.new("bazaar", tags)
when strategy <= CVSDownloadStrategy
- Dependency.new("cvs", tags) unless MacOS::Xcode.provides_cvs?
+ Dependency.new("cvs", tags) if MacOS.version >= :mavericks || !MacOS::Xcode.provides_cvs?
when strategy < AbstractDownloadStrategy
# allow unknown strategies to pass through
else