Use curl -d to pass query parameters in the bottle download strategy

Fixes Homebrew/homebrew#33355.
This commit is contained in:
Jack Nagel 2014-10-19 23:01:09 -05:00
parent f96c6e5c6c
commit 32ab3bb32f

View File

@ -287,10 +287,10 @@ end
# This strategy extracts our binary packages. # This strategy extracts our binary packages.
class CurlBottleDownloadStrategy < CurlDownloadStrategy class CurlBottleDownloadStrategy < CurlDownloadStrategy
def initialize name, resource def curl(*args)
mirror = ENV["HOMEBREW_SOURCEFORGE_MIRROR"]
args << "-G" << "-d" << "use_mirror=#{mirror}" if mirror
super super
mirror = ENV['HOMEBREW_SOURCEFORGE_MIRROR']
@url = "#{@url}?use_mirror=#{mirror}" if mirror
end end
def stage def stage