summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjoern <bjoern@asyme.(none)>2009-07-31 17:56:14 +0200
committerbjoern <bjoern@asyme.(none)>2009-07-31 17:56:14 +0200
commitdbca4a3812e6ae5df1249aad409b3a7cb97035a1 (patch)
tree960b2fcfe8cf69bdc5f3171ec9a9ad64c85c094d /kernel-check.py
parentBump to alpha release ;) (diff)
downloadkernel-check-dbca4a3812e6ae5df1249aad409b3a7cb97035a1.tar.gz
kernel-check-dbca4a3812e6ae5df1249aad409b3a7cb97035a1.tar.bz2
kernel-check-dbca4a3812e6ae5df1249aad409b3a7cb97035a1.zip
Clean code, fix some small bugs
Diffstat (limited to 'kernel-check.py')
-rwxr-xr-xkernel-check.py8
1 files changed, 4 insertions, 4 deletions
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))