diff options
| author | Charlie Sharpsteen | 2012-04-22 10:46:30 -0700 |
|---|---|---|
| committer | Charlie Sharpsteen | 2012-04-22 10:46:30 -0700 |
| commit | 37965f8a44448bd71de9072e411367c80d4fd3bc (patch) | |
| tree | 7dcc18e578ea2f679a4d7a219f556dea5116b8a0 /Library | |
| parent | fd67933f061d2ed8bb6d14059544525166ee6018 (diff) | |
| download | homebrew-37965f8a44448bd71de9072e411367c80d4fd3bc.tar.bz2 | |
Can't force checkouts if using Leopard system SVN
Diffstat (limited to 'Library')
| -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 |
