]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
bintray.py: little call fixes
authorJaroslav Kysela <perex@perex.cz>
Mon, 24 Apr 2017 18:51:20 +0000 (20:51 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 24 Apr 2017 18:51:20 +0000 (20:51 +0200)
support/bintray.py

index cb3a8af2f70ffe93802610142a429611be49304c..64287283505a9c3c824b17b80836beaaf6e91d76 100755 (executable)
@@ -92,7 +92,7 @@ def do_upload(*args):
     data = open(file, 'rb').read()
     resp = Bintray(bpath).put(data, binary=1)
     if resp.code != 200 and resp.code != 201:
-        error(10, 'HTTP ERROR "%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):
     if version.find('-'):
@@ -203,10 +203,10 @@ def do_publish(*args):
     data = { 'name': args.version, 'desc': PACKAGE_DESC }
     resp = Bintray(bpath).post(data)
     if resp.code != 200 and resp.code != 201 and resp.code != 409:
-        error(10, 'Version %s/%s: HTTP ERROR %s %s' %
-                  (args.repo, args.version, resp.code, resp.reason))
+        error(10, 'Version %s/%s: HTTP ERROR %s %s',
+                  args.repo, args.version, resp.code, resp.reason)
     else:
-        info('Version %s/%s created' % (args.repo, args.version))
+        info('Version %s/%s created', args.repo, args.version)
     for file in files:
         file = file.strip()
         basename, args, extra = get_bintray_params(file, hint)
@@ -216,8 +216,8 @@ def do_publish(*args):
         data = open(file, 'rb').read()
         resp = Bintray(bpath).put(data, binary=1)
         if resp.code != 200 and resp.code != 201:
-            error(10, 'File %s: HTTP ERROR "%s" %s' %
-                      (file, resp.code, resp.reason))
+            error(10, 'File %s: HTTP ERROR "%s" %s',
+                      file, resp.code, resp.reason)
         else:
             info('File %s: uploaded', file)