mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
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():
|
||||
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'):
|
||||
|
Loading…
Reference in New Issue
Block a user