Allow specifying --branch when getting decoder URL
This commit is contained in:
parent
2bf8161ca4
commit
82a5b37073
|
@ -118,10 +118,11 @@ def main():
|
||||||
if plat == 'darwin':
|
if plat == 'darwin':
|
||||||
plat = 'macosx_10_10'
|
plat = 'macosx_10_10'
|
||||||
|
|
||||||
|
if has_branch_set:
|
||||||
|
ds_version = args.branch.lstrip('v')
|
||||||
|
else:
|
||||||
version_string = read('../VERSION').strip()
|
version_string = read('../VERSION').strip()
|
||||||
ds_version = parse_version(version_string)
|
ds_version = parse_version(version_string)
|
||||||
|
|
||||||
if not has_branch_set:
|
|
||||||
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'
|
||||||
|
|
Loading…
Reference in New Issue