diff options
author | simon <simon@FreeBSD.org> | 2006-04-16 21:32:28 +0800 |
---|---|---|
committer | simon <simon@FreeBSD.org> | 2006-04-16 21:32:28 +0800 |
commit | 95e94156428fb9db22cee6360ce1e85b6baa0a25 (patch) | |
tree | d5f1c00bc6dd12ee853a1156897896954f9fe133 /palm/synce-rra | |
parent | 45267d52fcdbd95c87afda00eb77dc66c93a4df9 (diff) | |
download | freebsd-ports-gnome-95e94156428fb9db22cee6360ce1e85b6baa0a25.tar.gz freebsd-ports-gnome-95e94156428fb9db22cee6360ce1e85b6baa0a25.tar.zst freebsd-ports-gnome-95e94156428fb9db22cee6360ce1e85b6baa0a25.zip |
Avoid unnecessary invocations of pkg_info by checking whether the
package is installed or not using a precalculated regex.
This speeds up "portaudit -a" with around a factor of 10.
The change is slightly modified from the one from the PR by using
pkg_info -aE instead of ls /var/db/pkg for determining installed
packages.
Submitted by: Kuang-che Wu <kcwu@csie.org>
PR: ports/92942
Diffstat (limited to 'palm/synce-rra')
0 files changed, 0 insertions, 0 deletions