aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2016-06-04 09:35:21 +0000
committerMathieu Arnold <mat@FreeBSD.org>2016-06-04 09:35:21 +0000
commit06da80d826022fe5c31a51547acc7edf4319b3c2 (patch)
treee66b99283a54a59db769db0a294bd0c847e55f49 /Mk
parent56195574cdb6582a8184bdb2ebeca0a84fa5bd98 (diff)
downloadports-06da80d826022fe5c31a51547acc7edf4319b3c2.tar.gz
ports-06da80d826022fe5c31a51547acc7edf4319b3c2.zip
Notes
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Scripts/check-vulnerable.sh16
1 files changed, 7 insertions, 9 deletions
diff --git a/Mk/Scripts/check-vulnerable.sh b/Mk/Scripts/check-vulnerable.sh
index 29af7ee3c94c..6ddf6d68b00a 100644
--- a/Mk/Scripts/check-vulnerable.sh
+++ b/Mk/Scripts/check-vulnerable.sh
@@ -24,14 +24,12 @@ if [ -x "${dp_PKG_BIN}" ]; then
vlist=$(${dp_PKG_BIN} audit "${dp_PKGNAME}" || :)
if [ "${vlist}" = "0 problem(s) in the installed packages found." ]; then
vlist=""
+ else
+ ${dp_ECHO_MSG} "===> ${dp_PKGNAME} has known vulnerabilities:"
+ ${dp_ECHO_MSG} "$vlist"
+ ${dp_ECHO_MSG} "=> Please update your ports tree and try again."
+ ${dp_ECHO_MSG} "=> Note: Vulnerable ports are marked as such even if there is no update available."
+ ${dp_ECHO_MSG} "=> If you wish to ignore this vulnerability rebuild with 'make DISABLE_VULNERABILITIES=yes'"
+ exit 1
fi
fi
-
-if [ -n "$vlist" ]; then
- ${dp_ECHO_MSG} "===> ${dp_PKGNAME} has known vulnerabilities:"
- ${dp_ECHO_MSG} "$vlist"
- ${dp_ECHO_MSG} "=> Please update your ports tree and try again."
- ${dp_ECHO_MSG} "=> Note: Vulnerable ports are marked as such even if there is no update available."
- ${dp_ECHO_MSG} "=> If you wish to ignore this vulnerability rebuild with 'make DISABLE_VULNERABILITIES=yes'"
- exit 1
-fi