summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig>2007-03-22 11:43:18 +0000
committerrillig <rillig>2007-03-22 11:43:18 +0000
commitc5b9be93b45e07c608d01dc9a7bf5b5ce395db41 (patch)
treeb95da94e8554804aaafd01da8dc62400b837b95c /mk
parente2f0f6c136fb9988635278eb3f5832627f0f028a (diff)
downloadpkgsrc-c5b9be93b45e07c608d01dc9a7bf5b5ce395db41.tar.gz
The egrep line can be removed when audit-packages becomes fast enough.
Diffstat (limited to 'mk')
-rw-r--r--mk/bulk/sort-packages4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/bulk/sort-packages b/mk/bulk/sort-packages
index 17f7111d0a7..d8d768069cf 100644
--- a/mk/bulk/sort-packages
+++ b/mk/bulk/sort-packages
@@ -1,5 +1,5 @@
#! /bin/sh
-# $NetBSD: sort-packages,v 1.6 2007/02/21 05:32:30 jschauma Exp $
+# $NetBSD: sort-packages,v 1.7 2007/03/22 11:43:18 rillig Exp $
# This program scans all binary packages in the current directory and
# creates three lists of files in OUTDIR:
@@ -67,6 +67,8 @@ for pkg in *${PKG_SUFX}; do
# Check whether the package is vulnerable or not.
pkg_prefix="${pkg%%-*}"
category="regular"
+ # XXX: The egrep command is only needed here because
+ # audit-packages is so awfully slow.
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