mirror of
https://github.com/gosticks/brew.git
synced 2026-10-06 15:36:59 +00:00
bottle: Restore old filename for non-GitHub package URLs
The fix for #11090 in bd3f1d28e7 changed the bottle json content but the downloader still expects bottles at the old location.
This commit is contained in:
@@ -507,6 +507,12 @@ module Homebrew
|
||||
|
||||
return unless args.json?
|
||||
|
||||
bottle_filename = if bottle.root_url.match?(GitHubPackages::URL_REGEX)
|
||||
filename.github_packages
|
||||
else
|
||||
filename.bintray
|
||||
end
|
||||
|
||||
json = {
|
||||
f.full_name => {
|
||||
"formula" => {
|
||||
@@ -532,7 +538,7 @@ module Homebrew
|
||||
"date" => Pathname(local_filename).mtime.strftime("%F"),
|
||||
"tags" => {
|
||||
bottle_tag.to_s => {
|
||||
"filename" => filename.github_packages,
|
||||
"filename" => bottle_filename,
|
||||
"local_filename" => local_filename,
|
||||
"sha256" => sha256,
|
||||
"formulae_brew_sh_path" => formulae_brew_sh_path,
|
||||
|
||||
Reference in New Issue
Block a user