diff options
| author | ilovezfs | 2018-01-24 06:55:55 -0800 | 
|---|---|---|
| committer | ilovezfs | 2018-01-28 08:12:12 -0800 | 
| commit | edd1c76d409e224e329131bbd635d944cdf6fe1f (patch) | |
| tree | 9847801dbdecd84b303a2c696b6c47b1eeac5f8a | |
| parent | 6460a34e6580260a0392f8945fd31213678a1b34 (diff) | |
| download | brew-edd1c76d409e224e329131bbd635d944cdf6fe1f.tar.bz2 | |
bump-formula-pr: detect download strategy from url.
Previously, CurlDownloadStrategy was hard coded.
| -rw-r--r-- | Library/Homebrew/dev-cmd/bump-formula-pr.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| 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 | 
