aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2015-02-19 15:24:38 +0000
committerMike McQuaid2015-02-19 15:29:32 +0000
commita40fcfe3428caf7c90b5cd5f6c2c7d2b8c76adb8 (patch)
tree1c7bae4b4c29182838eef8c2ea46c430f5a3b27b /Library/Homebrew/cmd
parente773d0c3b915edfc490c0c6f57f2f1cead88c64e (diff)
downloadbrew-a40fcfe3428caf7c90b5cd5f6c2c7d2b8c76adb8.tar.bz2
pull: fix newly added bottles on Bintray.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/pull.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/pull.rb b/Library/Homebrew/cmd/pull.rb
index c750cb8a4..8bf0a2259 100644
--- a/Library/Homebrew/cmd/pull.rb
+++ b/Library/Homebrew/cmd/pull.rb
@@ -163,10 +163,12 @@ module Homebrew
if bintray_user && bintray_key
repo = Bintray.repository(tap_name)
changed_formulae.each do |f|
- next unless `git show --oneline --no-patch` =~ /: add .+ bottle./
+ # This means the formula has an existing bottle.
+ next if f.bottle
ohai "Publishing on Bintray:"
package = Bintray.package f.name
- version = Bintray.version(f.bottle.url)
+ bottle = Bottle.new(f, f.bottle_specification)
+ version = Bintray.version(bottle.url)
curl "--silent", "--fail",
"-u#{bintray_user}:#{bintray_key}", "-X", "POST",
"https://api.bintray.com/content/homebrew/#{repo}/#{package}/#{version}/publish"