Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot
diff options
context:
space:
mode:
Diffstat (limited to 'devbot')
-rw-r--r--devbot/system.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/devbot/system.py b/devbot/system.py
index bc8cf6c..bfeb9d2 100644
--- a/devbot/system.py
+++ b/devbot/system.py
@@ -97,19 +97,20 @@ def run_checks(package_manager, checks, packages):
for check in checks:
if not _eval_check_if(check):
- print "uuuuu"
continue
checker = checkers[check["checker"]]
if checker(check["check"]):
- if distro_info.name in packages[check["name"]]:
- for package in packages[check["name"]][distro_info.name]:
- # Might be none, if so skip on this distro_name
- if package and package not in to_install:
- to_install.append(package)
- else:
+ try:
+ packages_for_check = packages[check["name"]][distro_info.name]
+ except KeyError:
+ packages_for_check = []
packages_not_found.append(check)
+ for package in packages_for_check:
+ if package not in to_install:
+ to_install.append(package)
+
failed_checks.append(check)
if distro_info.supported: