diff options
| author | Jack Nagel | 2014-03-18 14:24:07 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-03-18 14:24:32 -0500 | 
| commit | 7af46a5ed0723f2860e34435581c495c55973966 (patch) | |
| tree | cfd7a29145a29c1a58206df2bdbf28091cdccaa1 /Library/Homebrew | |
| parent | 8dcadc54d271cc2b71e4993bb7499e87460f38a9 (diff) | |
| download | brew-7af46a5ed0723f2860e34435581c495c55973966.tar.bz2 | |
Always use CurlDownloadStrategy for legacy patches
Fixes Homebrew/homebrew#27671.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/patch.rb | 1 | ||||
| -rw-r--r-- | Library/Homebrew/resource.rb | 2 | 
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 | 
