From dbca4a3812e6ae5df1249aad409b3a7cb97035a1 Mon Sep 17 00:00:00 2001 From: bjoern Date: Fri, 31 Jul 2009 17:56:14 +0200 Subject: Clean code, fix some small bugs --- kernel-check.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kernel-check.py') diff --git a/kernel-check.py b/kernel-check.py index 5b3a8f8..3736fd3 100755 --- a/kernel-check.py +++ b/kernel-check.py @@ -32,10 +32,10 @@ def main(argv): portage.output.nocolor() elif opt in ('-r', '--report'): return - # TODO report(arg) + #TODO report(arg) elif opt in ('-s', '--show'): return - # TODO show_bugid(arg) + #TODO show_bugid(arg) elif opt in ('-v', '--verbose'): lib.VERBOSE = True @@ -43,7 +43,7 @@ def main(argv): kernel = lib.extract_version(os.uname()[2]) best = lib.best_version(kernel.source) - if kernel is not None: + if lib.Kernel is not None: info('Kernel version: %s' % (color('GOOD', '%s-%s' % (kernel.version, kernel.revision)))) info('Kernel sources: %s' % color('GOOD', kernel.source)) @@ -109,7 +109,7 @@ def main(argv): if kernel == best: info('Your kernel is up to date!') else: - info('Upgrading your kernel to %s does improve your security' % + info('Upgrading your kernel to %s does not improve your security' % color('GOOD', best.version + '-' + best.revision)) -- cgit v1.2.3-65-gdbad