commit: 98750a24b8c8adcdb8e6a0e37456bb75925f71c4
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 19 21:33:03 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Apr 28 15:50:15 2022 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=98750a24
install-qa-check.d/10ignored-flags: sync check with other examples (cosmetic)
Signed-off-by: Sam James <sam <AT> gentoo.org>
bin/install-qa-check.d/10ignored-flags | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/bin/install-qa-check.d/10ignored-flags
b/bin/install-qa-check.d/10ignored-flags
index 7cd073578..0bda8eced 100644
--- a/bin/install-qa-check.d/10ignored-flags
+++ b/bin/install-qa-check.d/10ignored-flags
@@ -1,8 +1,9 @@
# QA checks for ignored *FLAGS.
ignored_flag_check() {
- type -P scanelf > /dev/null || return
- has binchecks ${PORTAGE_RESTRICT} && return
+ if ! type -P scanelf >/dev/null || has binchecks ${PORTAGE_RESTRICT};
then
+ return
+ fi
local qa_var="QA_FLAGS_IGNORED_${ARCH/-/_}"
eval "[[ -n \${!qa_var} ]] && QA_FLAGS_IGNORED=(\"\${${qa_var}[@]}\")"