Allow specifying --branch when getting decoder URL

This commit is contained in:
Reuben Morais 2019-09-15 15:11:15 +02:00
parent 2bf8161ca4
commit 82a5b37073
1 changed files with 5 additions and 4 deletions

View File

@ -118,10 +118,11 @@ def main():
if plat == 'darwin': if plat == 'darwin':
plat = 'macosx_10_10' plat = 'macosx_10_10'
version_string = read('../VERSION').strip() if has_branch_set:
ds_version = parse_version(version_string) ds_version = args.branch.lstrip('v')
else:
if not has_branch_set: version_string = read('../VERSION').strip()
ds_version = parse_version(version_string)
args.branch = "v{}".format(version_string) args.branch = "v{}".format(version_string)
m_or_mu = 'mu' if is_ucs2 else 'm' m_or_mu = 'mu' if is_ucs2 else 'm'