From 1ef1a3fd171ddd945ef8a617c9d4b942fc971f62 Mon Sep 17 00:00:00 2001 From: genone Date: Thu, 16 Feb 2006 22:01:01 +0000 Subject: [PATCH] fix bug #123084 svn path=/; revision=279 --- trunk/ChangeLog | 4 ++++ trunk/src/glsa-check/glsa-check | 14 ++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/trunk/ChangeLog b/trunk/ChangeLog index b200f11..bcac6c2 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,3 +1,7 @@ +2006-02-16 Marius Mauch + * glsa-check: Fix bug causing the wrong summary to be displayed + for --test --verbose (bug #123084) + 2006-02-06 Paul Varner * revdep-rebuild: Reset PORTAGE_NICENESS, so that emerge is not niced twice. Thanks to Lukas Reck for the patch. (Bug 121482) diff --git a/trunk/src/glsa-check/glsa-check b/trunk/src/glsa-check/glsa-check index 9758e1c..6545e9c 100644 --- a/trunk/src/glsa-check/glsa-check +++ b/trunk/src/glsa-check/glsa-check @@ -11,7 +11,7 @@ from getopt import getopt,GetoptError __program__ = "glsa-check" __author__ = "Marius Mauch " -__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) -- 2.26.2