test-bot: allow overwrite unpublished bottles
Closes Homebrew/homebrew#40260. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
66aae02527
commit
6d93eee8bb
@ -802,6 +802,10 @@ module Homebrew
|
|||||||
|
|
||||||
content_url = "https://api.bintray.com/content/homebrew"
|
content_url = "https://api.bintray.com/content/homebrew"
|
||||||
content_url += "/#{bintray_repo}/#{bintray_package}/#{version}/#{filename}"
|
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}",
|
curl "--silent", "--fail", "-u#{bintray_user}:#{bintray_key}",
|
||||||
"-T", filename, content_url
|
"-T", filename, content_url
|
||||||
puts
|
puts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user