From 5115425a617c738c2e0264c459e02ff73aa2cb07 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Sun, 22 Jul 2018 14:42:29 +0300 Subject: [PATCH 1/2] Debian forgotten in e92a85e --- src/depends.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/depends.py b/src/depends.py index 39f5e759..d284a11b 100755 --- a/src/depends.py +++ b/src/depends.py @@ -29,6 +29,7 @@ logger.addHandler(handler) logger.setLevel(logging.ERROR) OS_RELEASE = { + "Debian GNU/Linux".lower(): "Debian", "fedora": "Fedora", "opensuse": "openSUSE", "ubuntu": "Ubuntu", From 72873a1bd4b731a219cebdf214204dd63cea66a0 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Sun, 22 Jul 2018 14:48:08 +0300 Subject: [PATCH 2/2] Prevent KeyError in checkdeps if detectOS() returns None --- checkdeps.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/checkdeps.py b/checkdeps.py index 28b1e559..c0e10051 100755 --- a/checkdeps.py +++ b/checkdeps.py @@ -137,6 +137,8 @@ if prereqs: OPSYS = detectOS() CMD = PACKAGE_MANAGER[OPSYS] if OPSYS in PACKAGE_MANAGER else 'UNKNOWN_INSTALLER' for lhs, rhs in EXTRAS_REQUIRE.items(): + if OPSYS is None: + break if rhs and any([ EXTRAS_REQUIRE_DEPS[x][OPSYS] for x in rhs