analytics: fix @ in formulae names with --github-packages-downloads

This commit is contained in:
Mike McQuaid 2023-07-26 16:46:23 +01:00
parent 818ede51bf
commit dda839c27b
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829

View File

@ -223,6 +223,7 @@ options: options)
return unless formula.core_formula?
escaped_formula_name = GitHubPackages.image_formula_name(formula.name)
.gsub("/", "%2F")
formula_url_suffix = "container/core%2F#{escaped_formula_name}/"
formula_url = "https://github.com/Homebrew/homebrew-core/pkgs/#{formula_url_suffix}"
output = Utils::Curl.curl_output("--fail", formula_url)