aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2010-05-07 10:25:01 -0700
committerAdam Vandenberg2010-05-07 10:38:48 -0700
commit2563b32bb6843e09a515fd01f6aa6bd9df388cdc (patch)
tree3510bafe06aba8c9c814aa468a4fbb6b7d98e4ed
parent9ba8d5ede8523e7508e06201f46eefd157e25faa (diff)
downloadbrew-2563b32bb6843e09a515fd01f6aa6bd9df388cdc.tar.bz2
Allow SVN to report cache location.
-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