diff options
Diffstat (limited to 'trunk/src')
| -rw-r--r-- | trunk/src/glsa-check/glsa-check | 14 |
1 files changed, 6 insertions, 8 deletions
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 <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) |
