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.
This commit is contained in:
Dominyk Tiller 2015-11-12 00:19:38 +00:00
parent 108effb95d
commit b381137cef

View File

@ -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