diff options
Diffstat (limited to 'Library')
| -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 |
