diff options
author | agc <agc> | 2002-01-29 15:07:55 +0000 |
---|---|---|
committer | agc <agc> | 2002-01-29 15:07:55 +0000 |
commit | 7d04c1a1f26251af879fda29e76afef58a02b23a (patch) | |
tree | 6f4bbbaa2be3460f35ddc239d91a43b481fc9586 /mk | |
parent | 5a5d216f32a60cd207d5a7d8a4ee23110135a871 (diff) | |
download | pkgsrc-7d04c1a1f26251af879fda29e76afef58a02b23a.tar.gz |
In the show-vulnerabilities and show-vulnerabilities-html targets, tighten
down further the regexp used to match a vulnerable package.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index cb536c4a2e0..23aa6e64758 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.919 2002/01/28 20:55:26 agc Exp $ +# $NetBSD: bsd.pkg.mk,v 1.920 2002/01/29 15:07:55 agc Exp $ # # This file is in the public domain. # @@ -3181,7 +3181,7 @@ SED_HOMEPAGE_EXPR= -e 's|%%HOMEPAGE%%||' show-vulnerabilities: ${_PKG_SILENT}${_PKG_DEBUG} \ if [ -f ${DISTDIR}/vulnerabilities ]; then \ - ${AWK} '/^${PKGBASE}[-<>]/ { print $$0 }' ${DISTDIR}/vulnerabilities; \ + ${AWK} '/^${PKGBASE}[-<>=]+[0-9]/ { print $$0 }' ${DISTDIR}/vulnerabilities; \ else \ ${ECHO} "No vulnerabilities list found."; \ fi @@ -3189,7 +3189,7 @@ show-vulnerabilities: show-vulnerabilities-html: ${_PKG_SILENT}${_PKG_DEBUG} \ if [ -f ${DISTDIR}/vulnerabilities ]; then \ - ${AWK} '/^${PKGBASE}[-<>]/ { gsub("\<", "\\<", $$1); \ + ${AWK} '/^${PKGBASE}[-<>=]+[0-9]/ { gsub("\<", "\\<", $$1); \ gsub("\>", "\\>", $$1); \ printf("<STRONG><LI>%s has a %s exploit (see <a href=\"%s\">%s</a> for more details)</STRONG>\n", $$1, $$2, $$3, $$3) }' \ ${DISTDIR}/vulnerabilities; \ |