diff options
author | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2019-03-04 17:17:33 +0100 |
---|---|---|
committer | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2019-03-04 17:17:33 +0100 |
commit | dc39d02e00266e026dad259bc7362986d65b30f7 (patch) | |
tree | 4ad215498343044281e8a4d994b72d21d7a85440 /pkgs/servers/home-assistant | |
parent | ceb5c0fa56da135394934f0869a7d32f2a062d0a (diff) |
home-assistant: allow beta versions in parse-requirements.py
Diffstat (limited to 'pkgs/servers/home-assistant')
-rwxr-xr-x | pkgs/servers/home-assistant/parse-requirements.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/servers/home-assistant/parse-requirements.py b/pkgs/servers/home-assistant/parse-requirements.py index 8012c5a341f13..e61d616d6a71a 100755 --- a/pkgs/servers/home-assistant/parse-requirements.py +++ b/pkgs/servers/home-assistant/parse-requirements.py @@ -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'): |