aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-12-09 22:39:58 -0500
committerJack Nagel2014-12-09 22:39:58 -0500
commit00ad37dd846e23f340d1ccd3fdafc16b44ccfda8 (patch)
treee4ef8b747f6e0f41e7dd0f4ad8f45a38b13990a9
parent18b8681a7c6af6f428eefe28676f86fc4f898075 (diff)
downloadbrew-00ad37dd846e23f340d1ccd3fdafc16b44ccfda8.tar.bz2
Add more general support for passing credentials to curl
-rw-r--r--Library/Homebrew/download_strategy.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 24128f6b2..ff75d8262 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