aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 5380b4a59..4c510db99 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -257,7 +257,9 @@ class SubversionDownloadStrategy < AbstractDownloadStrategy
# This saves on bandwidth and will have a similar effect to verifying the
# cache as it will make any changes to get the right revision.
svncommand = target.exist? ? 'up' : 'checkout'
- args = [svn, svncommand, '--force']
+ args = [svn, svncommand]
+ # SVN shipped with XCode 3.1.4 can't force a checkout.
+ args << '--force' unless MacOS.leopard? and svn == '/usr/bin/svn'
args << url if !target.exist?
args << target
args << '-r' << revision if revision