home-assistant: allow beta versions in parse-requirements.py
This commit is contained in:
parent
ceb5c0fa56
commit
dc39d02e00
@ -36,7 +36,8 @@ PKG_PREFERENCES = {
|
|||||||
|
|
||||||
def get_version():
|
def get_version():
|
||||||
with open(os.path.dirname(sys.argv[0]) + '/default.nix') as f:
|
with open(os.path.dirname(sys.argv[0]) + '/default.nix') as f:
|
||||||
m = re.search('hassVersion = "([\\d\\.]+)";', f.read())
|
# A version consists of digits, dots, and possibly a "b" (for beta)
|
||||||
|
m = re.search('hassVersion = "([\\d\\.b]+)";', f.read())
|
||||||
return m.group(1)
|
return m.group(1)
|
||||||
|
|
||||||
def parse_components(version='master'):
|
def parse_components(version='master'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user