diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 911401ad8c..d915ff582c 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