summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjschauma <jschauma>2007-02-21 05:32:30 +0000
committerjschauma <jschauma>2007-02-21 05:32:30 +0000
commit14da35a7d111a9153a55e085a028903a9f8c3421 (patch)
tree7ab3dd1bab7ac8d78db7ded68006882475bc8b59
parented12937bdd5a6765941fc87df56875a894f7d4f0 (diff)
downloadpkgsrc-14da35a7d111a9153a55e085a028903a9f8c3421.tar.gz
- also find possible listings in {whatever}foo variations
- use PKGVULNDIR from env for correct location of pkg-vulnerabilities
-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"