diff options
| author | Adam Vandenberg | 2010-05-07 10:25:01 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-05-07 10:38:48 -0700 |
| commit | 2f66b19e56d0c52a7ce52b07cffc8221c96237fb (patch) | |
| tree | 603848d97191979cd390b3d891071cb36ff8f9b2 /Library | |
| parent | 5f289b9d63a7e0325213cc7b0cdf8eaa128aa9ae (diff) | |
| download | homebrew-2f66b19e56d0c52a7ce52b07cffc8221c96237fb.tar.bz2 | |
Allow SVN to report cache location.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index c1b1f09ee..6f2dff81d 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -124,9 +124,17 @@ class NoUnzipCurlDownloadStrategy <CurlDownloadStrategy end class SubversionDownloadStrategy <AbstractDownloadStrategy + def initialize url, name, version, specs + super + @co=HOMEBREW_CACHE+@unique_token + end + + def cached_location + @co + end + def fetch ohai "Checking out #{@url}" - @co=HOMEBREW_CACHE+@unique_token unless @co.exist? quiet_safe_system svn, 'checkout', @url, @co else |
