diff options
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index a66348f8c..4f3f2146b 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -111,16 +111,9 @@ class SubversionDownloadStrategy <AbstractDownloadStrategy ohai "Checking out #{@url}" @co=HOMEBREW_CACHE+@unique_token unless @co.exist? - checkout_args = ['/usr/bin/svn', 'checkout', @url] - - if (@spec == :revision) and @ref - checkout_args << '-r' - checkout_args << @ref - end - - checkout_args << @co - - safe_system *checkout_args + args = [svn, 'checkout', @url, @co] + args << '-q' unless ARGV.verbose? + safe_system *args else # TODO svn up? puts "Repository already checked out" @@ -128,7 +121,10 @@ class SubversionDownloadStrategy <AbstractDownloadStrategy end def stage # Force the export, since the target directory will already exist - safe_system '/usr/bin/svn', 'export', '--force', @co, Dir.pwd + args = [svn, 'export', '--force', @co, Dir.pwd] + args << '-r' << @ref if @spec == :revision and @ref + args << '-q' unless ARGV.verbose? + safe_system *args end end |
