Fix curl_output for curl download strategy

This commit is contained in:
nthumann 2022-10-16 22:30:16 +02:00
parent 1da5cbc81a
commit f54de5a848
No known key found for this signature in database
GPG Key ID: 91AE26F52DE54B76

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.