Hide the downloader implementation from the installer

This commit is contained in:
Jack Nagel 2014-07-22 19:11:09 -05:00
parent 2b1b7ef0e4
commit d99379bc63
2 changed files with 6 additions and 3 deletions

View File

@ -634,9 +634,8 @@ class FormulaInstaller
if f.local_bottle_path
downloader = LocalBottleDownloadStrategy.new(f)
else
bottle = f.bottle
downloader = bottle.downloader
bottle.verify_download_integrity(bottle.fetch)
downloader = f.bottle
downloader.verify_download_integrity(downloader.fetch)
end
HOMEBREW_CELLAR.cd do
downloader.stage

View File

@ -170,6 +170,10 @@ class Bottle
cellar == :any || cellar == HOMEBREW_CELLAR.to_s
end
def stage
resource.downloader.stage
end
private
def build_url(root_url, filename)