From dc39d02e00266e026dad259bc7362986d65b30f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 4 Mar 2019 17:17:33 +0100 Subject: [PATCH] home-assistant: allow beta versions in parse-requirements.py --- pkgs/servers/home-assistant/parse-requirements.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/parse-requirements.py b/pkgs/servers/home-assistant/parse-requirements.py index 8012c5a341f1..e61d616d6a71 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'):