From 4b96cf6f0b0c6da4d86d13dcd14b7244f1541900 Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Sun, 22 Apr 2012 10:46:30 -0700 Subject: Can't force checkouts if using Leopard system SVN --- Library/Homebrew/download_strategy.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3