test-bot: allow overwrite unpublished bottles

Closes Homebrew/homebrew#40260.

Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
Xu Cheng 2015-06-01 14:18:05 +08:00
parent 66aae02527
commit 6d93eee8bb

View File

@ -802,6 +802,10 @@ module Homebrew
content_url = "https://api.bintray.com/content/homebrew"
content_url += "/#{bintray_repo}/#{bintray_package}/#{version}/#{filename}"
unless system "curl", "-I", "--fail", "--output", "/dev/null",
"https://homebrew.bintray.com/#{bintray_repo}/#{filename}"
content_url += "?override=1"
end
curl "--silent", "--fail", "-u#{bintray_user}:#{bintray_key}",
"-T", filename, content_url
puts