From b425a8ed66244961ef6e8b537ca917ccfbf8b22e Mon Sep 17 00:00:00 2001 From: rillig Date: Thu, 22 Mar 2007 11:43:18 +0000 Subject: The egrep line can be removed when audit-packages becomes fast enough. --- mk/bulk/sort-packages | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mk') 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 -- cgit v1.2.3