From 82a5b370738ead30495c997ca5afa56f2ecc0714 Mon Sep 17 00:00:00 2001 From: Reuben Morais Date: Sun, 15 Sep 2019 15:11:15 +0200 Subject: [PATCH] Allow specifying --branch when getting decoder URL --- util/taskcluster.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/util/taskcluster.py b/util/taskcluster.py index 9b7566c7..08ce66be 100644 --- a/util/taskcluster.py +++ b/util/taskcluster.py @@ -118,10 +118,11 @@ def main(): if plat == 'darwin': plat = 'macosx_10_10' - version_string = read('../VERSION').strip() - ds_version = parse_version(version_string) - - if not has_branch_set: + if has_branch_set: + ds_version = args.branch.lstrip('v') + else: + version_string = read('../VERSION').strip() + ds_version = parse_version(version_string) args.branch = "v{}".format(version_string) m_or_mu = 'mu' if is_ucs2 else 'm'