diff options
| author | Andrew Janke | 2016-03-10 00:56:32 -0500 |
|---|---|---|
| committer | Xu Cheng | 2016-03-11 13:32:54 +0800 |
| commit | f63b4359d7521fadb73f6cb64ed8f033d7fdca78 (patch) | |
| tree | ab5774630d9372c5b82ecec7a43ec17d00001388 /Library/Homebrew/cmd/pull.rb | |
| parent | 2c3a7e8c75d90091c06a82e315ca22dbd918c5be (diff) | |
| download | brew-f63b4359d7521fadb73f6cb64ed8f033d7fdca78.tar.bz2 | |
brew pull: enable blocking bintray publish by setting content-type
Looks like the bintray publish_wait_for_secs was being ignored because the
content type wasn't being set, so it defaulted to x-www-form-urlencoded
instead of application/json.
Changes the timeout to 0 to preserve current non-blocking behavior, which
we want in case multiple formulae are being updated.
Closes Homebrew/homebrew#49951.
Signed-off-by: Andrew Janke <andrew@apjanke.net>
Diffstat (limited to 'Library/Homebrew/cmd/pull.rb')
| -rw-r--r-- | Library/Homebrew/cmd/pull.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/pull.rb b/Library/Homebrew/cmd/pull.rb index ae762ca51..eef2d41ee 100644 --- a/Library/Homebrew/cmd/pull.rb +++ b/Library/Homebrew/cmd/pull.rb @@ -194,7 +194,8 @@ module Homebrew version = f.pkg_version curl "-w", '\n', "--silent", "--fail", "-u#{bintray_user}:#{bintray_key}", "-X", "POST", - "-d", '{"publish_wait_for_secs": -1}', + "-H", "Content-Type: application/json", + "-d", '{"publish_wait_for_secs": 0}', "https://api.bintray.com/content/homebrew/#{repo}/#{package}/#{version}/publish" bintray_fetch_formulae << f end |
