From 9e64bef51335cd7f0f159b305cbddc7d2610d719 Mon Sep 17 00:00:00 2001 From: Matthew Garrett Date: Tue, 17 May 2016 16:38:57 -0700 Subject: [PATCH] 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 --- setup_board | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup_board b/setup_board index 1cbb3c3100..ad23b562c6 100755 --- a/setup_board +++ b/setup_board @@ -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