diff options
| author | Tijs Zwinkels - TinkerTank | 2013-08-05 07:04:15 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2013-08-05 09:12:32 -0700 |
| commit | 96bd4d4683f117bf49ed148087b426e70742acf0 (patch) | |
| tree | 0c3929f8f33758c1260549ec3fcb7c1793d42421 /Library | |
| parent | 794a30af9d57c823180b1aa953b83ad4634c2441 (diff) | |
| download | homebrew-96bd4d4683f117bf49ed148087b426e70742acf0.tar.bz2 | |
Add support for the :ssl3 download-strategy.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 2d2fe1c28..17ee4143f 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -199,6 +199,13 @@ class CurlPostDownloadStrategy < CurlDownloadStrategy end end +# Download from an SSL3-only host. +class CurlSSL3DownloadStrategy < CurlDownloadStrategy + def _fetch + curl @url, '-3', '-C', downloaded_size, '-o', @temporary_path + end +end + # Use this strategy to download but not unzip a file. # Useful for installing jars. class NoUnzipCurlDownloadStrategy < CurlDownloadStrategy @@ -745,6 +752,7 @@ class DownloadStrategyDetector when :nounzip then NoUnzipCurlDownloadStrategy when :post then CurlPostDownloadStrategy when :svn then SubversionDownloadStrategy + when :ssl3 then CurlSSL3DownloadStrategy else raise "Unknown download strategy #{strategy} was requested." end |
