aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2015-02-19 12:56:57 +0000
committerMike McQuaid2015-02-19 12:58:56 +0000
commit9503a44e5741773a6c174979cc378d781855d424 (patch)
tree0a4b655362e0804b10d2f60dcd93b190d1bfc1f8 /Library/Homebrew/cmd
parente61e71089625ad26edfcb1a40ded7ded8aab1278 (diff)
downloadhomebrew-9503a44e5741773a6c174979cc378d781855d424.tar.bz2
test-bot: use Bintray package naming.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb15
1 files changed, 8 insertions, 7 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index 70d1db7c7..0a14ae6f3 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -747,24 +747,25 @@ module Homebrew
Dir.glob("*.bottle*.tar.gz") do |filename|
version = Bintray.version filename
- formula = bottle_filename_formula_name filename
- existing_bottle = existing_bottles[formula]
+ formula_name = bottle_filename_formula_name filename
+ bintray_package = Bintray.package formula_name
+ existing_bottle = existing_bottles[formula_name]
# Disable taps temporarily until Bintray sorts our repositories.
next if tap
- unless formula_packaged[formula]
- package_url = "#{bintray_repo_url}/#{formula}"
+ unless formula_packaged[formula_name]
+ package_url = "#{bintray_repo_url}/#{bintray_package}"
unless system "curl", "--silent", "--fail", "--output", "/dev/null", package_url
curl "--silent", "--fail", "-u#{bintray_user}:#{bintray_key}",
"-H", "Content-Type: application/json",
- "-d", "{\"name\":\"#{formula}\"}", bintray_repo_url
+ "-d", "{\"name\":\"#{bintray_package}\"}", bintray_repo_url
puts
end
- formula_packaged[formula] = true
+ formula_packaged[formula_name] = true
end
- content_url = "https://api.bintray.com/content/homebrew/#{bintray_repo}/#{formula}/#{version}/#{filename}"
+ content_url = "https://api.bintray.com/content/homebrew/#{bintray_repo}/#{bintray_package}/#{version}/#{filename}"
content_url += "?publish=1&override=1" if existing_bottle
curl "--silent", "--fail", "-u#{bintray_user}:#{bintray_key}",
"-T", filename, content_url