Hide the downloader implementation from the installer
This commit is contained in:
parent
2b1b7ef0e4
commit
d99379bc63
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user