From f54de5a8481bc9dc4ab2880a69c98efc6f4a9552 Mon Sep 17 00:00:00 2001 From: nthumann Date: Sun, 16 Oct 2022 22:30:16 +0200 Subject: [PATCH] Fix curl_output for curl download strategy --- Library/Homebrew/download_strategy.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 2c35aa08c4..c53e62d99b 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -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.