Skip to content
This repository was archived by the owner on Mar 12, 2019. It is now read-only.

Commit 9e4617c

Browse files
committed
DependencyCollector: Add svn req for Linuxbrew
Fix error: You must: brew install svn
1 parent 007e645 commit 9e4617c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Library/Homebrew/dependency_collector.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ def resource_dep(spec, tags)
158158
Dependency.new("bazaar", tags)
159159
when strategy <= CVSDownloadStrategy
160160
Dependency.new("cvs", tags) if MacOS.version >= :mavericks || !MacOS::Xcode.provides_cvs?
161+
when strategy <= SubversionDownloadStrategy
162+
SubversionRequirement.new(tags)
161163
when strategy < AbstractDownloadStrategy
162164
# allow unknown strategies to pass through
163165
else

Library/Homebrew/requirements.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,9 @@ class GitRequirement < Requirement
135135
default_formula "git"
136136
satisfy { Utils.git_available? }
137137
end
138+
139+
class SubversionRequirement < Requirement
140+
fatal true
141+
default_formula "subversion"
142+
satisfy { which "svn" }
143+
end

0 commit comments

Comments
 (0)