From 5c53d161895c07f09ae356d575edb5d6ee9fd376 Mon Sep 17 00:00:00 2001 From: mboelen Date: Mon, 25 Jan 2016 15:04:46 +0100 Subject: [PATCH] Show on screen if vulnerable packages are found --- include/tests_ports_packages | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/tests_ports_packages b/include/tests_ports_packages index 812bd5df..4a58b134 100644 --- a/include/tests_ports_packages +++ b/include/tests_ports_packages @@ -278,9 +278,9 @@ FIND=`${ZYPPERBINARY} pchk | grep "(0 security patches)"` if [ ! "${FIND}" = "" ]; then LogText "Result: No security updates found with Zypper" - Display --indent 2 --text "- Using Zypper to obtain vulnerable packages" --result NONE --color GREEN + Display --indent 2 --text "- Using Zypper to find vulnerable packages" --result NONE --color GREEN else - Display --indent 2 --text "- Using Zypper to obtain vulnerabilities" --result WARNING --color RED + Display --indent 2 --text "- Using Zypper to find vulnerable packages" --result WARNING --color RED LogText "Result: Zypper found one or more installed packages which are vulnerable." ReportWarning ${TEST_NO} "H" "Found one or more vulnerable packages installed" # Unfortunately zypper does not properly give back which package it is. Usually best guess is last word on the line @@ -417,8 +417,11 @@ AddHP 1 2 done ReportWarning ${TEST_NO} "H" "Found one or more vulnerable packages. Run: dnf upgrade" + Display --indent 2 --text "- Using DNF to find vulnerable packages" --result WARNING --color RED + else LogText "Result: no security updates found" + Display --indent 2 --text "- Using DNF to find vulnerable packages" --result NONE --color GREEN AddHP 5 5 fi fi