diff options
Diffstat (limited to 'kernel-check.py')
-rwxr-xr-x | kernel-check.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/kernel-check.py b/kernel-check.py index 12c95c6..e5de4d3 100755 --- a/kernel-check.py +++ b/kernel-check.py @@ -26,10 +26,11 @@ def main(argv): 'Main function' KERNEL = lib.extract_version(os.uname()[2]) - GENPATCH = None + ARCH = os.uname()[4] - CVE = [345, 284, 274, 0, 4] #TODO: Implement BEST = lib.best_version(KERNEL['source'] + '-sources') + CVE = [345, 284, 274, 0, 4] #TODO: Implement + GENPATCH = lib.get_genpatch(lib.read_genpatch_file('out'), KERNEL) info = portage.output.EOutput().einfo warn = portage.output.EOutput().ewarn @@ -65,12 +66,12 @@ def main(argv): sys.exit() if GENPATCH: - info('Integrated genpatch: ' + GENPATCH['version'] + ' ' + GENPATCH['want']) + info('Integrated genpatch: ' + color('GOOD', GENPATCH[2] + ' ' + GENPATCH[3])) else: warn('No genpatch information found!') if ARCH: - info('System architecture: ' + ARCH) + info('System architecture: ' + color('GOOD', ARCH)) else: error('No system architecture found!') sys.exit() |