bump: resume checking for TLS 1.3 support

macOS 12.3's shipping curl now supports TLS 1.3.
This commit is contained in:
EricFromCanada 2022-04-11 17:57:08 -04:00
parent 23cf66df6a
commit 415f05ca31
No known key found for this signature in database
GPG Key ID: 179D9CDDDB814168
2 changed files with 9 additions and 7 deletions

View File

@ -59,6 +59,7 @@ module Homebrew
limit = args.limit.to_i if args.limit.present?
unless Utils::Curl.curl_supports_tls13?
begin
unless Pathname.new(ENV["HOMEBREW_BREWED_CURL_PATH"]).exist?
ensure_formula_installed!("curl", reason: "Repology queries")
@ -66,6 +67,7 @@ module Homebrew
rescue FormulaUnavailableError
opoo "A newer `curl` is required for Repology queries."
end
end
if formulae_and_casks.present?
Livecheck.load_other_tap_strategies(formulae_and_casks)

View File

@ -19,7 +19,7 @@ module Repology
last_package_in_response += "/" if last_package_in_response.present?
url = "https://repology.org/api/v1/projects/#{last_package_in_response}?inrepo=#{repository}&outdated=1"
output, errors, = curl_output(url.to_s, "--silent", use_homebrew_curl: false)
output, errors, = curl_output(url.to_s, "--silent", use_homebrew_curl: !curl_supports_tls13?)
JSON.parse(output)
rescue
if Homebrew::EnvConfig.developer?
@ -35,7 +35,7 @@ module Repology
url = "https://repology.org/tools/project-by?repo=#{repository}&" \
"name_type=srcname&target_page=api_v1_project&name=#{name}"
output, errors, = curl_output("--location", "--silent", url.to_s, use_homebrew_curl: true)
output, errors, = curl_output("--location", "--silent", url.to_s, use_homebrew_curl: !curl_supports_tls13?)
data = JSON.parse(output)
{ name => data }