diff options
| author | Charlie Sharpsteen | 2012-04-22 10:46:30 -0700 |
|---|---|---|
| committer | Charlie Sharpsteen | 2012-04-22 10:46:30 -0700 |
| commit | 4b96cf6f0b0c6da4d86d13dcd14b7244f1541900 (patch) | |
| tree | abbdcb136596dddb22c81b22c0486f2000e1db77 | |
| parent | d33f60815c0540c8bf3ef462962890a1a9ef684a (diff) | |
| download | brew-4b96cf6f0b0c6da4d86d13dcd14b7244f1541900.tar.bz2 | |
Can't force checkouts if using Leopard system SVN
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 4 |
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 |
