From eb0be2ba4757f3da486e01af9885bbcbaf0e62b8 Mon Sep 17 00:00:00 2001 From: samueljohn <github@samueljohn.de> Date: Thu, 9 Aug 2012 17:43:15 +0200 Subject: [PATCH] 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> --- Library/Homebrew/download_strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 479dc8fae0..d589273eee 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 -- GitLab