]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
bintray.py: another fix for fedora/centos v4.2.2
authorJaroslav Kysela <perex@perex.cz>
Tue, 16 May 2017 11:37:41 +0000 (13:37 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 16 May 2017 11:37:41 +0000 (13:37 +0200)
support/bintray.py

index 6d872d20e7feba9bc38554ecd32852fbe488eb5c..098948cda465249fbf761af53216d5635aa545f9 100755 (executable)
@@ -110,7 +110,7 @@ def get_ver(version):
 def get_path(version, repo):
     major, minor, rest, git = get_ver(version)
     if int(major) >= 4 and int(minor) & 1 == 0:
-        if repo in ['fedora', 'centos', 'rhel'] and git.find('~') > 0:
+        if repo in ['fedora', 'centos', 'rhel'] and git.find('~') <= 0:
             return '%s.%s-release' % (major, minor)
         return '%s.%s' % (major, minor)
     return 't'
@@ -240,14 +240,18 @@ def test_filename():
         "tvheadend-4.2.2~xenial_amd64.deb",
         "tvheadend_4.2.2~xenial_arm64.deb",
         "tvheadend-4.2.2-1.el7.centos.x86_64.rpm",
-        "tvheadend-4.2.2-1.fc24.x86_64.rpm"
+        "tvheadend-4.2.2-1.fc24.x86_64.rpm",
+        "tvheadend-4.2.2-1~g82c8872~xenial_amd64.deb",
+        "tvheadend_4.2.2-1~g82c8872~xenial_arm64.deb",
+        "tvheadend-4.2.2-1~g82c8872.el7.centos.x86_64.rpm",
+        "tvheadend-4.2.2-1~g82c8872.fc24.x86_64.rpm",
     ]
     from pprint import pprint
     for f in FILES:
         basename, args, extra = get_bintray_params(f)
         print('\n')
         print('BASENAME:', basename)
-        print('EXTRA:', basename)
+        print('EXTRA:', extra)
         pprint(vars(args), indent=2)
 
 def main(argv):