aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorsamueljohn2012-08-09 17:43:15 +0200
committerAdam Vandenberg2012-08-09 08:53:20 -0700
commiteb0be2ba4757f3da486e01af9885bbcbaf0e62b8 (patch)
treeec2ad9c04ff4304f2edd072673b345477c8d7bdd /Library/Homebrew
parentdbe460ef04ddc8b043988879730414e31600db53 (diff)
downloadbrew-eb0be2ba4757f3da486e01af9885bbcbaf0e62b8.tar.bz2
download_strategy: Use MacOS.locate to find svn
- So that Xcode-only systems don't fail to find svn. Closes Homebrew/homebrew#14080. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/download_strategy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 479dc8fae..d589273ee 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -274,7 +274,7 @@ class SubversionDownloadStrategy < AbstractDownloadStrategy
def svn
return ENV['HOMEBREW_SVN'] if ENV['HOMEBREW_SVN']
return "#{HOMEBREW_PREFIX}/bin/svn" if File.exist? "#{HOMEBREW_PREFIX}/bin/svn"
- return '/usr/bin/svn'
+ return MacOS.locate 'svn'
end
end