bump-formula-pr: detect download strategy from url.

Previously, CurlDownloadStrategy was hard coded.
This commit is contained in:
ilovezfs 2018-01-24 06:55:55 -08:00
parent 6460a34e65
commit edd1c76d40

View File

@ -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