]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
bintray.py: handle 409 error as warning for upload (fix jessie builds)
authorJaroslav Kysela <perex@perex.cz>
Thu, 20 Sep 2018 15:20:20 +0000 (17:20 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 20 Sep 2018 15:20:20 +0000 (17:20 +0200)
support/bintray.py

index dc0461ae7dbe565196d1e45cc3117c6ed27a392b..92be5d09eed82b5265e21b9f792838d1ca64b22e 100755 (executable)
@@ -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):