aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/download_strategy.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 7f76d6f52..62e210ded 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -200,6 +200,8 @@ class CurlBottleDownloadStrategy < CurlDownloadStrategy
def initialize name, package
super
@tarball_path = HOMEBREW_CACHE/"#{name}-#{package.version}#{ext}"
+ mirror = ENV['HOMEBREW_SOURCEFORGE_MIRROR']
+ @url = "#{@url}?use_mirror=#{mirror}" if mirror
end
end