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