aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-04-15 19:31:33 +0800
committerXu Cheng2015-04-26 17:19:03 +0800
commitb3a38ea871434dae7c84f14c9e7ef9d8d968bb92 (patch)
tree3078dde47491535c84ffe939b6d171abfee9ca58 /Library
parente1611c4c224e83a1231cd1e5726bda37834feb87 (diff)
downloadbrew-b3a38ea871434dae7c84f14c9e7ef9d8d968bb92.tar.bz2
brew-test-bot: use pkg_version when uploading bottles
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index c2fc174c0..16784bc3b 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -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]