diff options
| author | Jack Nagel | 2014-12-09 22:39:58 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-12-09 22:39:58 -0500 |
| commit | 00ad37dd846e23f340d1ccd3fdafc16b44ccfda8 (patch) | |
| tree | e4ef8b747f6e0f41e7dd0f4ad8f45a38b13990a9 /Library | |
| parent | 18b8681a7c6af6f428eefe28676f86fc4f898075 (diff) | |
| download | brew-00ad37dd846e23f340d1ccd3fdafc16b44ccfda8.tar.bz2 | |
Add more general support for passing credentials to curl
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 8 |
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 |
