diff options
| author | Jack Nagel | 2014-10-19 23:01:09 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-10-19 23:01:09 -0500 |
| commit | 32ab3bb32f356b628f55e193c8c2d1f8386ab926 (patch) | |
| tree | e227ececfb4434498c670112761621dc75459201 | |
| parent | f96c6e5c6c1c4ee86be783441ab682135636643c (diff) | |
| download | brew-32ab3bb32f356b628f55e193c8c2d1f8386ab926.tar.bz2 | |
Use curl -d to pass query parameters in the bottle download strategy
Fixes Homebrew/homebrew#33355.
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 911401ad8..d915ff582 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -287,10 +287,10 @@ end # This strategy extracts our binary packages. class CurlBottleDownloadStrategy < CurlDownloadStrategy - def initialize name, resource + def curl(*args) + mirror = ENV["HOMEBREW_SOURCEFORGE_MIRROR"] + args << "-G" << "-d" << "use_mirror=#{mirror}" if mirror super - mirror = ENV['HOMEBREW_SOURCEFORGE_MIRROR'] - @url = "#{@url}?use_mirror=#{mirror}" if mirror end def stage |
