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 | 2e1f300f2a7eafd117c8c2ce3e2a76f7c956db0b (patch) | |
tree | c1c234fb51c6fd4a3027c7f4d6895a79fe411658 /src | |
parent | Add patch from Robert Buchholz: (diff) | |
download | gentoolkit-2e1f300f2a7eafd117c8c2ce3e2a76f7c956db0b.tar.gz gentoolkit-2e1f300f2a7eafd117c8c2ce3e2a76f7c956db0b.tar.bz2 gentoolkit-2e1f300f2a7eafd117c8c2ce3e2a76f7c956db0b.zip |
Add patch from Robert Buchholz: Use summarylist() to format output so we get colours and a list of all affected packages
svn path=/branches/gentoolkit-0.2.4/; revision=630
Diffstat (limited to 'src')
-rwxr-xr-x | src/glsa-check/glsa-check | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/glsa-check/glsa-check b/src/glsa-check/glsa-check index fe38331..a0bed1e 100755 --- a/src/glsa-check/glsa-check +++ b/src/glsa-check/glsa-check @@ -300,13 +300,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) |