Always use CurlDownloadStrategy for legacy patches

Fixes Homebrew/homebrew#27671.
This commit is contained in:
Jack Nagel 2014-03-18 14:24:07 -05:00
parent 8dcadc54d2
commit 7af46a5ed0
2 changed files with 2 additions and 1 deletions

View File

@ -136,6 +136,7 @@ class LegacyPatch < ExternalPatch
def initialize(strip, url)
super(strip)
resource.url = url
resource.download_strategy = CurlDownloadStrategy
end
def owner= owner

View File

@ -9,7 +9,7 @@ class Resource
include FileUtils
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 before initialization of the formula