Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/scripts/check-system
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-11 13:42:46 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-11 13:42:46 (GMT)
commita6cf0d510093d84aa837525fe7ddef9f97c01fbe (patch)
treeb7a45f22f2630c68ae9ebbe2738da3548fd7cc19 /scripts/check-system
parentddaf95ccceea5e93d8ad3c1b209c527c3aa7fb5d (diff)
Allow to specify a check name
It's useful for python checks for example, where the check is more than just a name. Still use check if check_name doesn't exist mostly to avoid a bunch of changes to the json.
Diffstat (limited to 'scripts/check-system')
-rwxr-xr-xscripts/check-system4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/check-system b/scripts/check-system
index f1f6622..d62d4a2 100755
--- a/scripts/check-system
+++ b/scripts/check-system
@@ -89,9 +89,9 @@ def run_checks(distro, checks, packages):
to_install = []
for check in checks:
- check_name = check["check"]
checker = checkers[check["checker"]]
- if checker(check_name):
+ if checker(check["check"]):
+ check_name = check.get("check_name", check["check"])
if distro in packages[check_name]:
package = packages[check_name][distro]