summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Buchholz <rbu@goodpoint.de>2009-08-05 15:39:02 +0200
committerRobert Buchholz <rbu@goodpoint.de>2009-08-05 15:39:02 +0200
commit28730d227dff56fdff6e722a1c19860c3c14a025 (patch)
tree2e1fdd0631afdc68c99b233d67fb6a3da4ab2016
parentRework best_version() in kernellib (diff)
downloadkernel-check-28730d227dff56fdff6e722a1c19860c3c14a025.tar.gz
kernel-check-28730d227dff56fdff6e722a1c19860c3c14a025.tar.bz2
kernel-check-28730d227dff56fdff6e722a1c19860c3c14a025.zip
Minor output changes
* recommend to run -s instead of -i for bug details * append '.' at the end of sentences * print "no genpatches found" only on -v
-rwxr-xr-xkernel-check.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/kernel-check.py b/kernel-check.py
index 5f16140..da8662e 100755
--- a/kernel-check.py
+++ b/kernel-check.py
@@ -66,7 +66,7 @@ def main(argv):
if genpatch is not None:
info('Integrated genpatch: %s' % color('GOOD', '%s %s' %
(genpatch.version, repr(genpatch))))
- else:
+ elif lib.VERBOSE:
info('No genpatch information found.')
arch = portage.settings['ARCH']
@@ -81,21 +81,21 @@ def main(argv):
schedule = lib.parse_cve_files('out', kernel, best, arch)
if schedule is not None:
- info('%s files read' % color('GOOD', str(schedule.read)))
- info('%s apply to this system' % color('GOOD', str(schedule.match)))
- info('%s are already fixed' % color('GOOD', str(schedule.fixed)))
+ info('%s vulnerabilities read.' % color('GOOD', str(schedule.read)))
+ info('%s apply to this architecture.' % color('GOOD', str(schedule.match)))
+ info('%s do not affect this system.' % color('GOOD', str(schedule.fixed)))
if len(schedule.canfix):
- error('%s can be fixed by upgrading' %
+ error('%s can be fixed by upgrading.' %
color('BAD', str(len(schedule.canfix))))
else:
- info('No vulnerability can be fixed by upgrading')
+ info('No vulnerability can be fixed by upgrading.')
if len(schedule.notfix):
- warn('%s have not been fixed yet' %
+ warn('%s have not been fixed yet.' %
color('WARN', str(len(schedule.notfix))))
else:
- info('No vulnerability have not been fixed yet')
+ info('No vulnerabilities have not been fixed yet.')
else:
error('No vulnerability files found!')
@@ -111,16 +111,16 @@ def main(argv):
print ''
info('To print more information about a vulnerability try:')
info('')
- info(' $ %s -i [bugid]' % sys.argv[0])
+ info(' $ %s -s [bugid]' % sys.argv[0])
info('')
- info('It is recommended to upgrade your kernel to %s' %
+ info('It is recommended to upgrade your kernel to %s.' %
color('GOOD', best.version + '-' + best.revision))
else:
info('')
if kernel == best:
info('Your kernel is up to date!')
else:
- info('Upgrading your kernel to %s does not improve your security' %
+ info('Upgrading your kernel to %s does not improve your security.' %
color('GOOD', best.version + '-' + best.revision))