From 263c0b558bb7a054c2a6aec82e997922980271d5 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Sat, 24 Sep 2016 15:27:42 +0200 Subject: [PATCH] Changes to show more details for warnings --- include/report | 2 +- include/tests_ports_packages | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/report b/include/report index 2de28e9b..e38d29ad 100644 --- a/include/report +++ b/include/report @@ -119,7 +119,7 @@ SOLUTION="" SHOWWARNING=$(echo ${WARNING} | sed 's/!space!/ /g' | sed 's/^.* Warning: //' | sed 's/\[details:\(.*\)\] \[solution:\(.*\)\]//' | sed 's/test://') ADDLINK=$(echo ${WARNING} | sed 's/!space!/ /g' | sed 's/^.* Warning: \(.*\)\[test://' | sed 's/\]\(.*\)]//') - DETAILS=$(echo ${SUGGESTION} | sed 's/!space!/ /g' | sed 's/^.* Warning: \(.*\)\[details://' | sed 's/\]\(.*\)]//') + DETAILS=$(echo ${WARNING} | sed 's/!space!/ /g' | sed 's/^.* Warning: \(.*\)\[details://' | sed 's/\]\(.*\)]//') SUGGESTION_PIECES=$(echo ${WARNING} | sed 's/\[/ [/g') for PIECE in ${SUGGESTION_PIECES}; do if [ -z "${SOLUTION}" ]; then diff --git a/include/tests_ports_packages b/include/tests_ports_packages index aa1a9019..593b3eb3 100644 --- a/include/tests_ports_packages +++ b/include/tests_ports_packages @@ -311,7 +311,7 @@ Report "vulnerable_package[]=${ITEM}" AddHP 1 2 done - ReportWarning "${TEST_NO}" "Vulnerable packages found" "arch-audit" "solution:Update packages with pacman -Suy" + ReportWarning "${TEST_NO}" "Vulnerable packages found" "arch-audit" "text:Update packages with pacman -Suy" fi fi #