mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Allow SVN to report cache location.
This commit is contained in:
parent
9ba8d5ede8
commit
2563b32bb6
@ -124,9 +124,17 @@ class NoUnzipCurlDownloadStrategy <CurlDownloadStrategy
|
|||||||
end
|
end
|
||||||
|
|
||||||
class SubversionDownloadStrategy <AbstractDownloadStrategy
|
class SubversionDownloadStrategy <AbstractDownloadStrategy
|
||||||
|
def initialize url, name, version, specs
|
||||||
|
super
|
||||||
|
@co=HOMEBREW_CACHE+@unique_token
|
||||||
|
end
|
||||||
|
|
||||||
|
def cached_location
|
||||||
|
@co
|
||||||
|
end
|
||||||
|
|
||||||
def fetch
|
def fetch
|
||||||
ohai "Checking out #{@url}"
|
ohai "Checking out #{@url}"
|
||||||
@co=HOMEBREW_CACHE+@unique_token
|
|
||||||
unless @co.exist?
|
unless @co.exist?
|
||||||
quiet_safe_system svn, 'checkout', @url, @co
|
quiet_safe_system svn, 'checkout', @url, @co
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user