From edd1c76d409e224e329131bbd635d944cdf6fe1f Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Wed, 24 Jan 2018 06:55:55 -0800 Subject: bump-formula-pr: detect download strategy from url. Previously, CurlDownloadStrategy was hard coded. --- Library/Homebrew/dev-cmd/bump-formula-pr.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/dev-cmd/bump-formula-pr.rb') diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb index 510650806..1f60412ed 100644 --- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb @@ -198,7 +198,7 @@ module Homebrew new_url.sub "mirrors.ocf.berkeley.edu/debian", "mirrorservice.org/sites/ftp.debian.org/debian" end resource = Resource.new { @url = new_url } - resource.download_strategy = CurlDownloadStrategy + resource.download_strategy = DownloadStrategyDetector.detect_from_url(new_url) resource.owner = Resource.new(formula.name) resource.version = forced_version if forced_version odie "No --version= argument specified!" unless resource.version -- cgit v1.2.3