diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2017-03-09 14:27:38 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2017-03-09 14:27:38 +0300 |
commit | 336dcb4811593deee4568da6ab66c953cebc888f (patch) | |
tree | feb1e56b5ad32f1f5b34afc3fbdecaade35b3a25 /include/tests_ports_packages | |
parent | e082b8af0836a60d6c7b8f41131df87fe74a8918 (diff) |
[PKGS-7381] Enhanced FreeBSD pkg audit testing
Diffstat (limited to 'include/tests_ports_packages')
-rw-r--r-- | include/tests_ports_packages | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/tests_ports_packages b/include/tests_ports_packages index f6681df4..7c0a7bdc 100644 --- a/include/tests_ports_packages +++ b/include/tests_ports_packages @@ -659,7 +659,12 @@ PACKAGE_AUDIT_TOOL_FOUND=1 PACKAGE_AUDIT_TOOL="pkg audit" if [ -f ${ROOTDIR}var/db/pkg/vuln.xml ]; then - FIND=$(${PKG_BINARY} audit 2> /dev/null) + # Query pkg audit, with optional refresh of vulnerability data (-F) + if [ ${REFRESH_REPOSITORIES} -eq 1 ]; then + FIND=$(${PKG_BINARY} audit -F -q 2> /dev/null) + else + FIND=$(${PKG_BINARY} audit -q 2> /dev/null) + fi if [ $? -eq 0 ]; then LogText "Result: pkg audit results are clean" Display --indent 2 --text "- Checking pkg audit to obtain vulnerable packages" --result "${STATUS_NONE}" --color GREEN |