mirror of
https://github.com/LBRYFoundation/lbry-sdk.git
synced 2025-08-23 17:27:25 +00:00
fix set_build
This commit is contained in:
parent
ba57af5502
commit
01baa193d5
1 changed files with 2 additions and 1 deletions
|
@ -19,8 +19,9 @@ def get_build():
|
||||||
tag = subprocess.check_output(['git', 'describe', '--exact-match', '--all']).strip()
|
tag = subprocess.check_output(['git', 'describe', '--exact-match', '--all']).strip()
|
||||||
if re.match('v\d+\.\d+\.\d+rc\d+', tag.decode()):
|
if re.match('v\d+\.\d+\.\d+rc\d+', tag.decode()):
|
||||||
return 'rc'
|
return 'rc'
|
||||||
else:
|
elif re.match('v\d+\.\d+\.\d+$', tag.decode()):
|
||||||
return 'release'
|
return 'release'
|
||||||
|
return 'qa'
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
# if the build doesn't have a tag
|
# if the build doesn't have a tag
|
||||||
return 'qa'
|
return 'qa'
|
||||||
|
|
Loading…
Add table
Reference in a new issue