From fca71c28aeda8605c0568bbd8bff399fe900fa34 Mon Sep 17 00:00:00 2001 From: Nanda H Krishna Date: Sat, 10 Apr 2021 01:15:07 +0530 Subject: [PATCH] bintray: fix filename for bottle uploads --- Library/Homebrew/bintray.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/bintray.rb b/Library/Homebrew/bintray.rb index 0290903641..778af875c8 100644 --- a/Library/Homebrew/bintray.rb +++ b/Library/Homebrew/bintray.rb @@ -217,8 +217,9 @@ class Bintray bintray_repo = bottle_hash["bintray"]["repository"] bottle_count = bottle_hash["bottle"]["tags"].length - bottle_hash["bottle"]["tags"].each do |_tag, tag_hash| - filename = tag_hash["filename"] # URL encoded in Bottle::Filename#bintray + bottle_hash["bottle"]["tags"].each do |tag, tag_hash| + filename = Bottle::Filename.create(bottle_hash["formula"]["name"], tag, + bottle_hash["bottle"]["rebuild"]).bintray sha256 = tag_hash["sha256"] delete_instructions = file_delete_instructions(bintray_repo, bintray_package, filename)