mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Decouple LocalBottleDownloadStrategy from CurlDownloadStrategy
This commit is contained in:
parent
799d2571e3
commit
bda3b4d91e
@ -376,10 +376,12 @@ class CurlBottleDownloadStrategy < CurlDownloadStrategy
|
|||||||
end
|
end
|
||||||
|
|
||||||
# This strategy extracts local binary packages.
|
# This strategy extracts local binary packages.
|
||||||
class LocalBottleDownloadStrategy < CurlDownloadStrategy
|
class LocalBottleDownloadStrategy < AbstractFileDownloadStrategy
|
||||||
def initialize formula
|
attr_reader :cached_location
|
||||||
super formula.name, formula.active_spec
|
|
||||||
@tarball_path = formula.local_bottle_path
|
def initialize(formula)
|
||||||
|
@name = name
|
||||||
|
@cached_location = formula.local_bottle_path
|
||||||
end
|
end
|
||||||
|
|
||||||
def stage
|
def stage
|
||||||
|
Loading…
x
Reference in New Issue
Block a user