test-bot: don't repeat creating Bintray packages.
This commit is contained in:
parent
579f288bd2
commit
bf76b71fe9
@ -729,6 +729,8 @@ module Homebrew
|
|||||||
"bottles"
|
"bottles"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
formula_packaged = {}
|
||||||
|
|
||||||
Dir.glob("*.bottle*.tar.gz") do |filename|
|
Dir.glob("*.bottle*.tar.gz") do |filename|
|
||||||
# Skip taps for now until we're using Bintray for Homebrew/homebrew
|
# Skip taps for now until we're using Bintray for Homebrew/homebrew
|
||||||
next if tap
|
next if tap
|
||||||
@ -736,6 +738,7 @@ module Homebrew
|
|||||||
formula = bottle_filename_formula_name filename
|
formula = bottle_filename_formula_name filename
|
||||||
existing_bottle = existing_bottles[formula]
|
existing_bottle = existing_bottles[formula]
|
||||||
|
|
||||||
|
unless formula_packaged[formula]
|
||||||
repo_url = "https://api.bintray.com/packages/homebrew/#{repo}"
|
repo_url = "https://api.bintray.com/packages/homebrew/#{repo}"
|
||||||
package_url = "#{repo_url}/#{formula}"
|
package_url = "#{repo_url}/#{formula}"
|
||||||
unless system "curl", "--silent", "--fail", "--output", "/dev/null", package_url
|
unless system "curl", "--silent", "--fail", "--output", "/dev/null", package_url
|
||||||
@ -745,6 +748,8 @@ module Homebrew
|
|||||||
"-d", "{\"name\":\"#{formula}\"}", repo_url
|
"-d", "{\"name\":\"#{formula}\"}", repo_url
|
||||||
puts
|
puts
|
||||||
end
|
end
|
||||||
|
formula_packaged[formula] = true
|
||||||
|
end
|
||||||
|
|
||||||
content_url = "https://api.bintray.com/content/homebrew/#{repo}/#{formula}/#{version}/#{filename}"
|
content_url = "https://api.bintray.com/content/homebrew/#{repo}/#{formula}/#{version}/#{filename}"
|
||||||
content_url += "?publish=1&override=1" if existing_bottle
|
content_url += "?publish=1&override=1" if existing_bottle
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user