summaryrefslogtreecommitdiff
path: root/mk/bulk
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2007-02-21 05:32:30 +0000
committerjschauma <jschauma@pkgsrc.org>2007-02-21 05:32:30 +0000
commitb9211a69aa810a6ae1a14aa55aa62bb8df64b196 (patch)
tree7ab3dd1bab7ac8d78db7ded68006882475bc8b59 /mk/bulk
parentf9a005679261839c421b04fac5bf27e7c2162a42 (diff)
downloadpkgsrc-b9211a69aa810a6ae1a14aa55aa62bb8df64b196.tar.gz
- also find possible listings in {whatever}foo variations
- use PKGVULNDIR from env for correct location of pkg-vulnerabilities
Diffstat (limited to 'mk/bulk')
-rw-r--r--mk/bulk/sort-packages4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bulk/sort-packages b/mk/bulk/sort-packages
index 3303b02f734..17f7111d0a7 100644
--- a/mk/bulk/sort-packages
+++ b/mk/bulk/sort-packages
@@ -1,5 +1,5 @@
#! /bin/sh
-# $NetBSD: sort-packages,v 1.5 2007/02/20 06:46:20 jschauma Exp $
+# $NetBSD: sort-packages,v 1.6 2007/02/21 05:32:30 jschauma Exp $
# This program scans all binary packages in the current directory and
# creates three lists of files in OUTDIR:
@@ -67,7 +67,7 @@ for pkg in *${PKG_SUFX}; do
# Check whether the package is vulnerable or not.
pkg_prefix="${pkg%%-*}"
category="regular"
- if grep "^${pkg_prefix}" /usr/pkgsrc/distfiles/pkg-vulnerabilities >/dev/null 2>&1; then
+ if egrep "^({.*${pkg_prefix}.*}|${pkg_prefix}|{.*}${pkg_prefix})" ${PKGVULNDIR}/pkg-vulnerabilities >/dev/null 4>&1; then
vuln=`${AUDIT_PACKAGES} -p "${pkg}"`
if [ -n "${vuln}" ]; then
category="vulnerable"