brew-test-bot: use pkg_version when uploading bottles

This commit is contained in:
Xu Cheng 2015-04-15 19:31:33 +08:00
parent e1611c4c22
commit b3a38ea871

View File

@ -771,8 +771,14 @@ module Homebrew
formula_packaged = {}
Dir.glob("*.bottle*.tar.gz") do |filename|
version = Bintray.version filename
formula_name = bottle_filename_formula_name filename
canonical_formula_name = if tap
"#{tap}/#{formula_name}"
else
formula_name
end
formula = Formulary.factory canonical_formula_name
version = formula.pkg_version
bintray_package = Bintray.package formula_name
existing_bottle = existing_bottles[formula_name]