aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/pull.rb12
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!"