fix bug #123084
authorgenone <genone@gentoo.org>
Thu, 16 Feb 2006 22:01:01 +0000 (22:01 -0000)
committergenone <genone@gentoo.org>
Thu, 16 Feb 2006 22:01:01 +0000 (22:01 -0000)
svn path=/; revision=279

trunk/ChangeLog
trunk/src/glsa-check/glsa-check

index b200f118abafc63cfeb5b3dc1b225999560a650e..bcac6c20c90b6cd831b1c1f20f9c3886187d7d36 100644 (file)
@@ -1,3 +1,7 @@
+2006-02-16 Marius Mauch <genone@gentoo.org>
+       * glsa-check: Fix bug causing the wrong summary to be displayed 
+       for --test --verbose (bug #123084)
+
 2006-02-06 Paul Varner <fuzzyray@gentoo.org>
        * revdep-rebuild: Reset PORTAGE_NICENESS, so that emerge is not niced
        twice. Thanks to Lukas Reck for the patch. (Bug 121482)
index 9758e1cefa89525eb590d74a7ebb55bcc6aed61c..6545e9c2700f5a6f582032afc4fd61c5e77de6e1 100644 (file)
@@ -11,7 +11,7 @@ from getopt import getopt,GetoptError
 
 __program__ = "glsa-check"
 __author__ = "Marius Mauch <genone@gentoo.org>"
-__version__ = "0.6.1"
+__version__ = "0.6.2"
 
 optionmap = [
 ["-l", "--list", "list all unapplied GLSA"],
@@ -255,15 +255,13 @@ if mode == "test":
                                sys.stderr.write(("invalid GLSA: %s (error message was: %s)\n" % (myid, e)))
                        continue
                if myglsa.isVulnerable():
-                       outputlist.append(myglsa.nr)
-       if len(outputlist) > 0:
-               sys.stderr.write("This system is affected by the following GLSAs:\n")
-               for g in outputlist:
-                       sys.stdout.write(g)
                        if verbose:
-                               sys.stdout.write(" ( " + myglsa.title + " )\n")
+                               outputlist.append(str(myglsa.nr)+" ( "+myglsa.title+" ) ")
                        else:
-                               sys.stdout.write("\n")
+                               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")
        else:
                sys.stderr.write("This system is not affected by any of the listed GLSAs\n")
        sys.exit(0)