Use new cache directory for `load` method. (#23265)

This commit is contained in:
Markus Reiter 2016-07-30 01:28:06 +02:00
parent 7011870769
commit d02053c0a4
1 changed files with 2 additions and 2 deletions

View File

@ -10,8 +10,8 @@ class Hbc::Source::URI
end
def load
HOMEBREW_CACHE_CASKS.mkpath
path = HOMEBREW_CACHE_CASKS.join(File.basename(uri))
Hbc.cache.mkpath
path = Hbc.cache.join(File.basename(uri))
ohai "Downloading #{uri}"
odebug "Download target -> #{path}"
begin