diff options
author | jschauma <jschauma@pkgsrc.org> | 2007-02-21 05:32:30 +0000 |
---|---|---|
committer | jschauma <jschauma@pkgsrc.org> | 2007-02-21 05:32:30 +0000 |
commit | c3fddc6418908301624871518aa9b9d420d0af2e (patch) | |
tree | 7ab3dd1bab7ac8d78db7ded68006882475bc8b59 /mk | |
parent | 58e1a735ca994a8b8c75d6ac33e18c0b898d7f57 (diff) | |
download | pkgsrc-c3fddc6418908301624871518aa9b9d420d0af2e.tar.gz |
- also find possible listings in {whatever}foo variations
- use PKGVULNDIR from env for correct location of pkg-vulnerabilities
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bulk/sort-packages | 4 |
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" |