bintray: fix filename for bottle uploads

This commit is contained in:
Nanda H Krishna 2021-04-10 01:15:07 +05:30
parent 1f3be6f72e
commit fca71c28ae
No known key found for this signature in database
GPG Key ID: 067E5FCD58ADF3AA

View File

@ -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)