1 |
Author: genone |
2 |
Date: 2008-09-28 18:59:47 +0000 (Sun, 28 Sep 2008) |
3 |
New Revision: 11592 |
4 |
|
5 |
Modified: |
6 |
main/trunk/bin/glsa-check |
7 |
Log: |
8 |
use summarylist for output of test mode when --verbose is given (patch by Robert Buchholz <rbu@g.o>) |
9 |
|
10 |
Modified: main/trunk/bin/glsa-check |
11 |
=================================================================== |
12 |
--- main/trunk/bin/glsa-check 2008-09-28 18:58:29 UTC (rev 11591) |
13 |
+++ main/trunk/bin/glsa-check 2008-09-28 18:59:47 UTC (rev 11592) |
14 |
@@ -274,13 +274,13 @@ |
15 |
sys.stderr.write(("invalid GLSA: %s (error message was: %s)\n" % (myid, e))) |
16 |
continue |
17 |
if myglsa.isVulnerable(): |
18 |
- if verbose: |
19 |
- outputlist.append(str(myglsa.nr)+" ( "+myglsa.title+" ) ") |
20 |
- else: |
21 |
- outputlist.append(str(myglsa.nr)) |
22 |
+ outputlist.append(str(myglsa.nr)) |
23 |
if len(outputlist) > 0: |
24 |
sys.stderr.write("This system is affected by the following GLSAs:\n") |
25 |
- sys.stdout.write("\n".join(outputlist)+"\n") |
26 |
+ if verbose: |
27 |
+ summarylist(outputlist) |
28 |
+ else: |
29 |
+ sys.stdout.write("\n".join(outputlist)+"\n") |
30 |
else: |
31 |
sys.stderr.write("This system is not affected by any of the listed GLSAs\n") |
32 |
sys.exit(0) |