From: Jaroslav Kysela Date: Thu, 20 Sep 2018 15:20:20 +0000 (+0200) Subject: bintray.py: handle 409 error as warning for upload (fix jessie builds) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1c03470de02174ce55d3d0b29586170c21fd7b8;p=thirdparty%2Ftvheadend.git bintray.py: handle 409 error as warning for upload (fix jessie builds) --- diff --git a/support/bintray.py b/support/bintray.py index dc0461ae7..92be5d09e 100755 --- a/support/bintray.py +++ b/support/bintray.py @@ -103,6 +103,8 @@ def do_upload(*args): data = open(file, 'rb').read() resp = Bintray(bpath).put(data, binary=1) if resp.code != 200 and resp.code != 201: + if resp.code == 409: + error(0, 'HTTP WARNING "%s" %s %s', resp.url, resp.code, resp.reason) error(10, 'HTTP ERROR "%s" %s %s', resp.url, resp.code, resp.reason) def get_ver(version):