summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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 e5de4d3..c8f2019 100755
--- a/kernel-check.py
+++ b/kernel-check.py
@@ -28,8 +28,8 @@ def main(argv):
KERNEL = lib.extract_version(os.uname()[2])
ARCH = os.uname()[4]
- BEST = lib.best_version(KERNEL['source'] + '-sources')
- CVE = [345, 284, 274, 0, 4] #TODO: Implement
+ BEST = lib.best_version(KERNEL['source'])
+ CVE = [345, 284, 274, 0, 4] #TODO: Implement + use dict!
GENPATCH = lib.get_genpatch(lib.read_genpatch_file('out'), KERNEL)
info = portage.output.EOutput().einfo
@@ -60,13 +60,13 @@ def main(argv):
if KERNEL:
info('Kernel version: ' + color('GOOD', KERNEL['version'] + '-' + KERNEL['revision']))
- info('Kernel sources: ' + color('GOOD', KERNEL['source'] + '-sources'))
+ info('Kernel sources: ' + color('GOOD', KERNEL['source']))
else:
error('No kernel information found!')
sys.exit()
if GENPATCH:
- info('Integrated genpatch: ' + color('GOOD', GENPATCH[2] + ' ' + GENPATCH[3]))
+ info('Integrated genpatch: ' + color('GOOD', GENPATCH['version'] + ' ' + GENPATCH['want']))
else:
warn('No genpatch information found!')