From 00ad37dd846e23f340d1ccd3fdafc16b44ccfda8 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 9 Dec 2014 22:39:58 -0500 Subject: [PATCH] Add more general support for passing credentials to curl --- Library/Homebrew/download_strategy.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 24128f6b29..ff75d82629 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -258,6 +258,7 @@ class CurlDownloadStrategy < AbstractDownloadStrategy def curl(*args) args << '--connect-timeout' << '5' unless mirrors.empty? + args << "--user" << meta.fetch(:user) if meta.key?(:user) super end @@ -415,13 +416,6 @@ class S3DownloadStrategy < CurlDownloadStrategy end end -class AttResearchDownloadStrategy < CurlDownloadStrategy - def curl(*args) - args << "--user" << "I accept www.opensource.org/licenses/eclipse:." - super - end -end - class SubversionDownloadStrategy < VCSDownloadStrategy def initialize(name, resource) super