setup_board: create a glsa-check wrapper

We want to be able to verify that we don't have any vulnerabilities in the
build root, so install a wrapper for glsa-check
This commit is contained in:
Matthew Garrett 2016-05-17 16:38:57 -07:00
parent 3d851911c5
commit 9e64bef513

View File

@ -80,7 +80,8 @@ exec sudo -E ${command} ${extra_args} "\$@"
EOF
# Note: parent will process these.
wrappers+=( "${target}" )
eval ${command^^}_WRAPPER="${target}" # ${foo^^} returns toupper($foo)
upper=${command^^}
eval ${upper/-/_}_WRAPPER="${target}" # ${foo^^} returns toupper($foo)
}
generate_all_wrappers() {
@ -90,7 +91,7 @@ generate_all_wrappers() {
info "Generating wrapper scripts"
for wrapper in 'emerge --root-deps' ebuild eclean equery portageq \
qcheck qfile qlist emaint; do
qcheck qfile qlist emaint glsa-check; do
_generate_wrapper ${wrapper}
done