Always use CurlDownloadStrategy for legacy patches
Fixes Homebrew/homebrew#27671.
This commit is contained in:
parent
8dcadc54d2
commit
7af46a5ed0
@ -136,6 +136,7 @@ class LegacyPatch < ExternalPatch
|
|||||||
def initialize(strip, url)
|
def initialize(strip, url)
|
||||||
super(strip)
|
super(strip)
|
||||||
resource.url = url
|
resource.url = url
|
||||||
|
resource.download_strategy = CurlDownloadStrategy
|
||||||
end
|
end
|
||||||
|
|
||||||
def owner= owner
|
def owner= owner
|
||||||
|
@ -9,7 +9,7 @@ class Resource
|
|||||||
include FileUtils
|
include FileUtils
|
||||||
|
|
||||||
attr_reader :checksum, :mirrors, :specs, :using
|
attr_reader :checksum, :mirrors, :specs, :using
|
||||||
attr_writer :url, :checksum, :version
|
attr_writer :url, :checksum, :version, :download_strategy
|
||||||
|
|
||||||
# Formula name must be set after the DSL, as we have no access to the
|
# Formula name must be set after the DSL, as we have no access to the
|
||||||
# formula name before initialization of the formula
|
# formula name before initialization of the formula
|
||||||
|
Loading…
x
Reference in New Issue
Block a user