From b381137cefa2a39a2a32818bb6a666f491a6b73b Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Thu, 12 Nov 2015 00:19:38 +0000 Subject: [PATCH] pull: don't try to publish nonexistent bottles ``` Fast-forward Library/Formula/ant.rb | 8 ++++---- Library/Formula/nailgun.rb | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) Deleted branch pull-bottle-45902 (was 1fdb73d). ==> Publishing on Bintray: {"files":3} ==> Publishing on Bintray: Error: Failure while executing ``` In that case, "jetty-runner" is bottle unneeded, but because I've passed the pull bottle command for the other two formulae, it attempts to publish a bottle that isn't there. --- Library/Homebrew/cmd/pull.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/cmd/pull.rb b/Library/Homebrew/cmd/pull.rb index 68fcfcb562..fc07dac3e0 100644 --- a/Library/Homebrew/cmd/pull.rb +++ b/Library/Homebrew/cmd/pull.rb @@ -192,6 +192,7 @@ module Homebrew if bintray_user && bintray_key repo = Bintray.repository(tap_name) changed_formulae.each do |f| + next unless f.bottle_defined? ohai "Publishing on Bintray:" package = Bintray.package f.name version = f.pkg_version