summaryrefslogtreecommitdiffstats
path: root/bin/glsa-check
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2008-09-28 18:59:47 +0000
committerMarius Mauch <genone@gentoo.org>2008-09-28 18:59:47 +0000
commite894f214209ef25ece3cbf6369f053dc7e9754bc (patch)
treea206b7b4be09ad54629d249823079ecd60969367 /bin/glsa-check
parente37f58ebba3fca041d99ba0ef11c58319b106f4d (diff)
downloadportage-e894f214209ef25ece3cbf6369f053dc7e9754bc.tar.gz
portage-e894f214209ef25ece3cbf6369f053dc7e9754bc.tar.bz2
portage-e894f214209ef25ece3cbf6369f053dc7e9754bc.zip
use summarylist for output of test mode when --verbose is given (patch by Robert Buchholz <rbu@gentoo.org>)
svn path=/main/trunk/; revision=11592
Diffstat (limited to 'bin/glsa-check')
-rw-r--r--bin/glsa-check10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/glsa-check b/bin/glsa-check
index f789af1ec..8aea638a5 100644
--- a/bin/glsa-check
+++ b/bin/glsa-check
@@ -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)