pull: use Bintray package naming.
This commit is contained in:
parent
e5f145abab
commit
e773d0c3b9
@ -161,14 +161,15 @@ module Homebrew
|
|||||||
bintray_key = ENV["BINTRAY_KEY"]
|
bintray_key = ENV["BINTRAY_KEY"]
|
||||||
|
|
||||||
if bintray_user && bintray_key
|
if bintray_user && bintray_key
|
||||||
bintray_repo = Bintray.repository(tap_name)
|
repo = Bintray.repository(tap_name)
|
||||||
changed_formulae.each do |f|
|
changed_formulae.each do |f|
|
||||||
next unless `git show --oneline --no-patch` =~ /: add .+ bottle./
|
next unless `git show --oneline --no-patch` =~ /: add .+ bottle./
|
||||||
ohai "Publishing on Bintray:"
|
ohai "Publishing on Bintray:"
|
||||||
|
package = Bintray.package f.name
|
||||||
version = Bintray.version(f.bottle.url)
|
version = Bintray.version(f.bottle.url)
|
||||||
curl "--silent", "--fail",
|
curl "--silent", "--fail",
|
||||||
"-u#{bintray_user}:#{bintray_key}", "-X", "POST",
|
"-u#{bintray_user}:#{bintray_key}", "-X", "POST",
|
||||||
"https://api.bintray.com/content/homebrew/#{bintray_repo}/#{f.name}/#{version}/publish"
|
"https://api.bintray.com/content/homebrew/#{repo}/#{package}/#{version}/publish"
|
||||||
puts
|
puts
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user