aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-03-18 14:24:07 -0500
committerJack Nagel2014-03-18 14:24:32 -0500
commit7af46a5ed0723f2860e34435581c495c55973966 (patch)
treecfd7a29145a29c1a58206df2bdbf28091cdccaa1 /Library/Homebrew
parent8dcadc54d271cc2b71e4993bb7499e87460f38a9 (diff)
downloadbrew-7af46a5ed0723f2860e34435581c495c55973966.tar.bz2
Always use CurlDownloadStrategy for legacy patches
Fixes Homebrew/homebrew#27671.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/patch.rb1
-rw-r--r--Library/Homebrew/resource.rb2
2 files changed, 2 insertions, 1 deletions
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