aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Bauman <bman@gentoo.org>2019-08-30 15:18:56 -0400
committerZac Medico <zmedico@gentoo.org>2019-08-30 20:40:06 -0700
commit4d9c10704b2eaf6cd7467ff0929a94e64429bfa6 (patch)
treefd73be301420618f9b5779c8c8e95f8b0ced93c2 /bin/glsa-check
parentglsa-check: Remove 'new' target from glsa-list (diff)
downloadportage-4d9c10704b2eaf6cd7467ff0929a94e64429bfa6.tar.gz
portage-4d9c10704b2eaf6cd7467ff0929a94e64429bfa6.tar.bz2
portage-4d9c10704b2eaf6cd7467ff0929a94e64429bfa6.zip
glsa-check: add exit code for affected GLSAs
Bug: https://bugs.gentoo.org/587930 Reported-by: Bandie Yip Kojote <bandie@ttygap.net> Signed-off-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'bin/glsa-check')
-rwxr-xr-xbin/glsa-check1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/glsa-check b/bin/glsa-check
index 7a6916d15..95ef16fde 100755
--- a/bin/glsa-check
+++ b/bin/glsa-check
@@ -305,6 +305,7 @@ if mode == "test":
summarylist(outputlist)
else:
sys.stdout.write("\n".join(outputlist)+"\n")
+ sys.exit(6)
else:
sys.stderr.write("This system is not affected by any of the listed GLSAs\n")
sys.exit(0)