Merge pull request #14004 from n-thumann/fix_curl_output_download_strategy

Fix curl_output for curl download strategy
This commit is contained in:
Bo Anderson 2022-10-16 23:04:16 +01:00 committed by GitHub
commit 0fdb06b421
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -580,6 +580,13 @@ class HomebrewCurlDownloadStrategy < CurlDownloadStrategy
curl_download resolved_url, to: to, try_partial: @try_partial, timeout: timeout, use_homebrew_curl: true
end
def curl_output(*args, **options)
raise HomebrewCurlDownloadStrategyError, url unless Formula["curl"].any_version_installed?
options[:use_homebrew_curl] = true
super(*args, **options)
end
end
# Strategy for downloading a file from an GitHub Packages URL.