Skip to content
Snippets Groups Projects
Commit 053add01 authored by John Johansen's avatar John Johansen Committed by John Johansen
Browse files

Merge utils make check_severity_db: say ERROR for failing the build

utils `make check_severity_db` will fail the build if a (probably new) capability in not listed in severity.db. This also means it should print out an ERROR, not a warning.

This is a follow-up of lp#1890547 and !589

MR: !591


Acked-by: default avatarJohn Johansen <john.johansen@canonical.com>
(cherry picked from commit 2f5d5e1b)
Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
parent 6e2a1da8
No related branches found
No related tags found
No related merge requests found
Pipeline #180000082 passed
......@@ -82,7 +82,7 @@ check_severity_db: /usr/include/linux/capability.h severity.db
# The sed statement is based on the one in the parser's makefile
RC=0 ; for cap in ${CAPABILITIES} ; do \
if ! grep -q -w $${cap} severity.db ; then \
echo "Warning! capability $${cap} not found in severity.db" ; \
echo "ERROR: capability $${cap} not found in severity.db" ; \
RC=1 ; \
fi ;\
done ; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment