use summarylist for output of test mode when --verbose is given (patch by Robert...
authorMarius Mauch <genone@gentoo.org>
Sun, 28 Sep 2008 18:59:47 +0000 (18:59 -0000)
committerMarius Mauch <genone@gentoo.org>
Sun, 28 Sep 2008 18:59:47 +0000 (18:59 -0000)
svn path=/main/trunk/; revision=11592

bin/glsa-check

index f789af1ec0a1343d4dfc579d819f1e9bf7ca2ff8..8aea638a59ef3626e6ccf4a27d8bd18ee6afd8fe 100644 (file)
@@ -274,13 +274,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)