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
|
if f.local_bottle_path
|
||||||
downloader = LocalBottleDownloadStrategy.new(f)
|
downloader = LocalBottleDownloadStrategy.new(f)
|
||||||
else
|
else
|
||||||
bottle = f.bottle
|
downloader = f.bottle
|
||||||
downloader = bottle.downloader
|
downloader.verify_download_integrity(downloader.fetch)
|
||||||
bottle.verify_download_integrity(bottle.fetch)
|
|
||||||
end
|
end
|
||||||
HOMEBREW_CELLAR.cd do
|
HOMEBREW_CELLAR.cd do
|
||||||
downloader.stage
|
downloader.stage
|
||||||
|
|||||||
@ -170,6 +170,10 @@ class Bottle
|
|||||||
cellar == :any || cellar == HOMEBREW_CELLAR.to_s
|
cellar == :any || cellar == HOMEBREW_CELLAR.to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def stage
|
||||||
|
resource.downloader.stage
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def build_url(root_url, filename)
|
def build_url(root_url, filename)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user