aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorCharlie Sharpsteen2012-04-22 10:46:30 -0700
committerCharlie Sharpsteen2012-04-22 10:46:30 -0700
commit37965f8a44448bd71de9072e411367c80d4fd3bc (patch)
tree7dcc18e578ea2f679a4d7a219f556dea5116b8a0 /Library
parentfd67933f061d2ed8bb6d14059544525166ee6018 (diff)
downloadhomebrew-37965f8a44448bd71de9072e411367c80d4fd3bc.tar.bz2
Can't force checkouts if using Leopard system SVN
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