Add patch from Robert Buchholz: Use summarylist() to format output so we get colours...
authorfuzzyray <fuzzyray@gentoo.org>
Thu, 7 May 2009 22:07:50 +0000 (22:07 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Thu, 7 May 2009 22:07:50 +0000 (22:07 -0000)
svn path=/branches/gentoolkit-0.2.4/; revision=630

src/glsa-check/glsa-check

index fe383315b82bea08ed7b7a068c6e023c44dc2228..a0bed1ea3f0a393d4dd25255574936ed9831fc20 100755 (executable)
@@ -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)