[PATCH] glsa-check: add exit code for affected GLSAs

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] glsa-check: add exit code for affected GLSAs

Aaron Bauman-2
Bug: https://bugs.gentoo.org/587930

Reported-by: Bandie Yip Kojote <[hidden email]>
Signed-off-by: Aaron Bauman <[hidden email]>
---
 bin/glsa-check | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bin/glsa-check b/bin/glsa-check
index 83ea6b7c3..b3ddc532a 100755
--- a/bin/glsa-check
+++ b/bin/glsa-check
@@ -282,6 +282,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)
--
2.23.0


Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] glsa-check: add exit code for affected GLSAs

Zac Medico-2
On 8/30/19 12:18 PM, Aaron Bauman wrote:

> Bug: https://bugs.gentoo.org/587930
>
> Reported-by: Bandie Yip Kojote <[hidden email]>
> Signed-off-by: Aaron Bauman <[hidden email]>
> ---
>  bin/glsa-check | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/bin/glsa-check b/bin/glsa-check
> index 83ea6b7c3..b3ddc532a 100755
> --- a/bin/glsa-check
> +++ b/bin/glsa-check
> @@ -282,6 +282,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)
>
Thanks, merged:

https://gitweb.gentoo.org/proj/portage.git/commit/?id=4d9c10704b2eaf6cd7467ff0929a94e64429bfa6
--
Thanks,
Zac


signature.asc (1000 bytes) Download Attachment