Lines 227-233
Link Here
|
227 |
glsalist.extend([g for g in params if g not in glsalist]) |
227 |
glsalist.extend([g for g in params if g not in glsalist]) |
228 |
|
228 |
|
229 |
|
229 |
|
230 |
def summarylist(myglsalist, fd1=sys.stdout, fd2=sys.stderr, encoding="utf-8"): |
230 |
def summarylist(myglsalist, fd1=sys.stderr, fd2=sys.stdout, encoding="utf-8"): |
231 |
# Get to the raw streams in py3k before wrapping them with an encoded writer |
231 |
# Get to the raw streams in py3k before wrapping them with an encoded writer |
232 |
# to avoid writing bytes to a text stream (stdout/stderr are text streams |
232 |
# to avoid writing bytes to a text stream (stdout/stderr are text streams |
233 |
# by default in py3k) |
233 |
# by default in py3k) |
Lines 416-422
Link Here
|
416 |
summarylist(outputlist) |
416 |
summarylist(outputlist) |
417 |
else: |
417 |
else: |
418 |
sys.stdout.write("\n".join(outputlist) + "\n") |
418 |
sys.stdout.write("\n".join(outputlist) + "\n") |
419 |
sys.exit(6) |
419 |
sys.exit(6) |
420 |
else: |
420 |
else: |
421 |
sys.stderr.write("This system is not affected by any of the listed GLSAs\n") |
421 |
sys.stderr.write("This system is not affected by any of the listed GLSAs\n") |
422 |
sys.exit(0) |
422 |
sys.exit(0) |