diff options
| author | Mike McQuaid | 2015-07-10 16:11:51 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-07-10 16:13:52 +0100 |
| commit | 913659efe4ac5092ce69aebc0e0dc8ae7b16ba96 (patch) | |
| tree | 50f779d033fe5b2fa4e880ae3f544eb543eb056e /Library | |
| parent | 6bbbd2481a1497b7127a0cb21c722095aa533dfc (diff) | |
| download | brew-913659efe4ac5092ce69aebc0e0dc8ae7b16ba96.tar.bz2 | |
pull: wait for Bintray publish, don't sleep.
Closes Homebrew/homebrew#41530.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/pull.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/pull.rb b/Library/Homebrew/cmd/pull.rb index c5ccac69c..47529b3ec 100644 --- a/Library/Homebrew/cmd/pull.rb +++ b/Library/Homebrew/cmd/pull.rb @@ -185,12 +185,16 @@ module Homebrew ohai "Publishing on Bintray:" package = Bintray.package f.name version = f.pkg_version - curl "--silent", "--fail", + curl "-w", '\n', "--silent", "--fail", "-u#{bintray_user}:#{bintray_key}", "-X", "POST", + "-d", '{"publish_wait_for_secs": -1}', "https://api.bintray.com/content/homebrew/#{repo}/#{package}/#{version}/publish" - puts - sleep 20 - safe_system "brew", "fetch", "--retry", "--force-bottle", f.full_name + success = system "brew", "fetch", "--retry", "--force-bottle", f.full_name + unless success + ohai "That didn't work; waiting for 15 seconds and trying again..." + sleep 15 + system "brew", "fetch", "--retry", "--force-bottle", f.full_name + end end else opoo "You must set BINTRAY_USER and BINTRAY_KEY to add or update bottles on Bintray!" |
