summaryrefslogtreecommitdiff
path: root/mk/bulk/sort-packages
diff options
context:
space:
mode:
Diffstat (limited to 'mk/bulk/sort-packages')
-rw-r--r--mk/bulk/sort-packages13
1 files changed, 2 insertions, 11 deletions
diff --git a/mk/bulk/sort-packages b/mk/bulk/sort-packages
index 4dbc343de67..ed2e952c47d 100644
--- a/mk/bulk/sort-packages
+++ b/mk/bulk/sort-packages
@@ -1,5 +1,5 @@
#! /bin/sh
-# $NetBSD: sort-packages,v 1.11 2007/10/09 19:19:13 martti Exp $
+# $NetBSD: sort-packages,v 1.12 2008/03/15 16:27:43 joerg Exp $
# This program scans all binary packages in the current directory and
# creates three lists of files in OUTDIR:
@@ -69,16 +69,7 @@ for pkg in *${PKG_SUFX}; do
pkg_prefix="${pkg%%-*}"
category="regular"
_INFO_VER=`${PKG_INFO} -V`;
- if ${PKG_ADMIN} pmatch 'pkg_install<20070714' pkg_install-${_INFO_VER}; then
- # XXX: The egrep command is only needed here because
- # audit-packages before pkg_install-20070714 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}"`
- fi
- else
- vuln=`${AUDIT_PACKAGES} ${AUDIT_PACKAGES_FLAGS} -p "${pkg}"`
- fi
+ vuln=`${AUDIT_PACKAGES} ${AUDIT_PACKAGES_FLAGS} -p "${pkg}"`
if [ -n "${vuln}" ]; then
category="vulnerable"
fi