diff options
author | rillig <rillig@pkgsrc.org> | 2007-03-22 11:43:18 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-03-22 11:43:18 +0000 |
commit | b425a8ed66244961ef6e8b537ca917ccfbf8b22e (patch) | |
tree | b95da94e8554804aaafd01da8dc62400b837b95c /mk/bulk | |
parent | 8b01483b7057d4d7d4e8c091654280944a8497f2 (diff) | |
download | pkgsrc-b425a8ed66244961ef6e8b537ca917ccfbf8b22e.tar.gz |
The egrep line can be removed when audit-packages becomes fast enough.
Diffstat (limited to 'mk/bulk')
-rw-r--r-- | mk/bulk/sort-packages | 4 |
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 |