diff options
| author | Jack Nagel | 2014-12-09 22:39:58 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-12-09 22:39:58 -0500 |
| commit | daaf370ad5cc335ef106424ffc4fc569429e139d (patch) | |
| tree | ca50611be989d59d5ab990e6d60029c3b57ffbd3 /Library/Homebrew | |
| parent | 62ee328784af2dfcca1da2ec85cf4be947d2c192 (diff) | |
| download | homebrew-daaf370ad5cc335ef106424ffc4fc569429e139d.tar.bz2 | |
Add more general support for passing credentials to curl
Diffstat (limited to 'Library/Homebrew')
| -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 |
