From 7af46a5ed0723f2860e34435581c495c55973966 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 18 Mar 2014 14:24:07 -0500 Subject: Always use CurlDownloadStrategy for legacy patches Fixes Homebrew/homebrew#27671. --- Library/Homebrew/patch.rb | 1 + Library/Homebrew/resource.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/patch.rb b/Library/Homebrew/patch.rb index dbb2da843..28d2946b2 100644 --- a/Library/Homebrew/patch.rb +++ b/Library/Homebrew/patch.rb @@ -136,6 +136,7 @@ class LegacyPatch < ExternalPatch def initialize(strip, url) super(strip) resource.url = url + resource.download_strategy = CurlDownloadStrategy end def owner= owner diff --git a/Library/Homebrew/resource.rb b/Library/Homebrew/resource.rb index a9380db88..4fabb33e3 100644 --- a/Library/Homebrew/resource.rb +++ b/Library/Homebrew/resource.rb @@ -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 -- cgit v1.2.3