Merge pull request #15766 from MikeMcQuaid/analytics_fix_at

analytics: fix `@` in formulae names with `--github-packages-downloads`
This commit is contained in:
Mike McQuaid 2023-07-26 16:59:44 +01:00 committed by GitHub
commit fc86485e9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)