diff options
| author | Mike McQuaid | 2017-01-27 14:13:57 +0000 |
|---|---|---|
| committer | GitHub | 2017-01-27 14:13:57 +0000 |
| commit | e8148c3b4fe6b7bdb4f3970208971589e177c3f2 (patch) | |
| tree | 62da6d1fd3ef8c3553c7cda72ad46c95f9a4184b /Library/Homebrew/dev-cmd/pull.rb | |
| parent | e444488bfe18b722dec8fa836f477c1be21c47d8 (diff) | |
| parent | eff70115b5eb20542c7d66725e1812cb0e149ff3 (diff) | |
| download | brew-e8148c3b4fe6b7bdb4f3970208971589e177c3f2.tar.bz2 | |
Merge pull request #1922 from MikeMcQuaid/pull-missing-bottles
pull: better handle missing bottles.
Diffstat (limited to 'Library/Homebrew/dev-cmd/pull.rb')
| -rw-r--r-- | Library/Homebrew/dev-cmd/pull.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/pull.rb b/Library/Homebrew/dev-cmd/pull.rb index f7006baaa..8771788e4 100644 --- a/Library/Homebrew/dev-cmd/pull.rb +++ b/Library/Homebrew/dev-cmd/pull.rb @@ -248,7 +248,6 @@ module Homebrew changed_formulae_names.each do |name| f = Formula[name] next if f.bottle_unneeded? || f.bottle_disabled? - ohai "Publishing on Bintray: #{f.name} #{f.pkg_version}" publish_bottle_file_on_bintray(f, bintray_creds) published << f.full_name end @@ -408,7 +407,12 @@ module Homebrew if info.nil? raise "Failed publishing bottle: failed reading formula info for #{f.full_name}" end + unless info.bottle_info_any + opoo "No bottle defined in formula #{package}" + return + end version = info.pkg_version + ohai "Publishing on Bintray: #{package} #{version}" curl "-w", '\n', "--silent", "--fail", "-u#{creds[:user]}:#{creds[:key]}", "-X", "POST", "-H", "Content-Type: application/json", |
