diff options
author | fuzzyray <fuzzyray@gentoo.org> | 2009-05-07 22:07:50 +0000 |
---|---|---|
committer | fuzzyray <fuzzyray@gentoo.org> | 2009-05-07 22:07:50 +0000 |
commit | 0a387afcf0dbdd7a5cd5ab74d9da7f5f90f75b1b (patch) | |
tree | 1ee525156f56e8255ba3edc5138cd15704147f91 /bin/glsa-check | |
parent | Add patch from Robert Buchholz: (diff) | |
download | gentoolkit-0a387afcf0dbdd7a5cd5ab74d9da7f5f90f75b1b.tar.gz gentoolkit-0a387afcf0dbdd7a5cd5ab74d9da7f5f90f75b1b.tar.bz2 gentoolkit-0a387afcf0dbdd7a5cd5ab74d9da7f5f90f75b1b.zip |
Add patch from Robert Buchholz: Use summarylist() to format output so we get colours and a list of all affected packages
svn path=/trunk/gentoolkit/; revision=630
Diffstat (limited to 'bin/glsa-check')
-rw-r--r-- | bin/glsa-check | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/glsa-check b/bin/glsa-check index 0ce133e..316f34f 100644 --- a/bin/glsa-check +++ b/bin/glsa-check @@ -302,13 +302,13 @@ if mode == "test": sys.stderr.write(("invalid GLSA: %s (error message was: %s)\n" % (myid, e))) continue if myglsa.isVulnerable(): - if verbose: - outputlist.append(str(myglsa.nr)+" ( "+myglsa.title+" ) ") - else: - outputlist.append(str(myglsa.nr)) + outputlist.append(str(myglsa.nr)) if len(outputlist) > 0: sys.stderr.write("This system is affected by the following GLSAs:\n") - sys.stdout.write("\n".join(outputlist)+"\n") + if verbose: + summarylist(outputlist) + else: + sys.stdout.write("\n".join(outputlist)+"\n") else: sys.stderr.write("This system is not affected by any of the listed GLSAs\n") sys.exit(0) |