From 70483403e498564e84dbb494d7dc9ccf62c7381b Mon Sep 17 00:00:00 2001 From: nia Date: Thu, 18 Feb 2021 10:39:50 +0000 Subject: [PATCH] genreadme: Skip printing fixed vulnerabilities to the html output --- mk/scripts/genreadme.awk | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mk/scripts/genreadme.awk b/mk/scripts/genreadme.awk index fe4a105ecf40..c6d9556aff3c 100755 --- a/mk/scripts/genreadme.awk +++ b/mk/scripts/genreadme.awk @@ -1,5 +1,5 @@ #!/usr/bin/awk -f -# $NetBSD: genreadme.awk,v 1.39 2020/05/10 07:48:10 rillig Exp $ +# $NetBSD: genreadme.awk,v 1.40 2021/02/18 10:39:50 nia Exp $ # # Copyright (c) 2002, 2003, 2005, 2006, 2015 The NetBSD Foundation, Inc. # All rights reserved. @@ -349,10 +349,9 @@ END { PKG_ADMIN, entry[1], pkgdir2name[toppkg]); status_cmd | getline status close(status_cmd) - if (status == "open") - status = "an OPEN"; - else - status = "a " status; + if (status == "fixed") + continue + status = "a " status; vul = sprintf("%s
  • %s %s vulnerability
  • \n", vul, status, entry[3], entry[2]); }