aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/download_strategy.rb10
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