Skip to content

Commit

Permalink
genreadme: Skip printing fixed vulnerabilities to the html output
Browse files Browse the repository at this point in the history
  • Loading branch information
alarixnia committed Feb 18, 2021
1 parent 37d8d57 commit 7048340
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions mk/scripts/genreadme.awk
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -349,10 +349,9 @@ END {
PKG_ADMIN, entry[1], pkgdir2name[toppkg]);
status_cmd | getline status
close(status_cmd)
if (status == "open")
status = "an <STRONG>OPEN</STRONG>";
else
status = "a " status;
if (status == "fixed")
continue
status = "a " status;
vul = sprintf("%s<LI>%s <a href=\"%s\">%s</a> vulnerability</LI>\n",
vul, status, entry[3], entry[2]);
}
Expand Down

0 comments on commit 7048340

Please sign in to comment.