Use curl -d to pass query parameters in the bottle download strategy
Fixes Homebrew/homebrew#33355.
This commit is contained in:
parent
f96c6e5c6c
commit
32ab3bb32f
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user