home-assistant: allow beta versions in parse-requirements.py

This commit is contained in:
Robert Schütz 2019-03-04 17:17:33 +01:00
parent ceb5c0fa56
commit dc39d02e00

View File

@ -36,7 +36,8 @@ PKG_PREFERENCES = {
def get_version():
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)
def parse_components(version='master'):