+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)
__program__ = "glsa-check"
__author__ = "Marius Mauch <genone@gentoo.org>"
-__version__ = "0.6.1"
+__version__ = "0.6.2"
optionmap = [
["-l", "--list", "list all unapplied GLSA"],
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)