From 138d4df7109b5d82853bda245cbde201bf4ec2de Mon Sep 17 00:00:00 2001 From: Alexander Mancevice Date: Sun, 25 Mar 2018 13:45:58 -0400 Subject: [PATCH] Detect bottle download strategy Use ::detect method of DownloadStrategyDetector to detect download strategy of a bottle from its root_url. This allows bottle root_urls to be s3:// style URLs and be handled by the S3DownloadStrategy without specifying ':using =>' --- Library/Homebrew/software_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb index 1efff55920..df7b86770c 100644 --- a/Library/Homebrew/software_spec.rb +++ b/Library/Homebrew/software_spec.rb @@ -318,7 +318,7 @@ class Bottle end def select_download_strategy(specs) - specs[:using] ||= CurlDownloadStrategy + specs[:using] ||= DownloadStrategyDetector.detect(@spec.root_url) specs end end