diff options
author | agc <agc@pkgsrc.org> | 2002-01-29 15:07:55 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2002-01-29 15:07:55 +0000 |
commit | e608a43e289467e5815122e9c56efa9b932a99fa (patch) | |
tree | 6f4bbbaa2be3460f35ddc239d91a43b481fc9586 | |
parent | 81de140c4c8af66ee32d04fdb6908ac363e319ed (diff) | |
download | pkgsrc-e608a43e289467e5815122e9c56efa9b932a99fa.tar.gz |
In the show-vulnerabilities and show-vulnerabilities-html targets, tighten
down further the regexp used to match a vulnerable package.
-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; \ |