dev-cmd/bottle: revert filename in JSON to single dash

Fixes #11136.
This commit is contained in:
Bo Anderson 2021-04-16 13:04:31 +01:00
parent ba578f4ae2
commit b5ccad093d
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -512,12 +512,6 @@ module Homebrew
return unless args.json?
bottle_filename = if bottle.root_url.match?(GitHubPackages::URL_REGEX)
filename.github_packages
else
filename.url_encode
end
json = {
f.full_name => {
"formula" => {
@ -543,7 +537,7 @@ module Homebrew
"date" => Pathname(local_filename).mtime.strftime("%F"),
"tags" => {
bottle_tag.to_s => {
"filename" => bottle_filename,
"filename" => filename.url_encode,
"local_filename" => local_filename,
"sha256" => sha256,
"formulae_brew_sh_path" => formulae_brew_sh_path,