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=/trunk/gentoolkit/; revision=630

bin/glsa-check

index 0ce133e34aead1eec83562233f2e9cafce666350..316f34fe6a6d432e5ae042f0655cbf6a1319631e 100644 (file)
@@ -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)