aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-10-19 23:01:09 -0500
committerJack Nagel2014-10-19 23:01:09 -0500
commit32ab3bb32f356b628f55e193c8c2d1f8386ab926 (patch)
treee227ececfb4434498c670112761621dc75459201
parentf96c6e5c6c1c4ee86be783441ab682135636643c (diff)
downloadbrew-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.rb6
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