From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E787515808E for ; Thu, 28 Apr 2022 15:50:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D120FE089C; Thu, 28 Apr 2022 15:50:26 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9293CE089C for ; Thu, 28 Apr 2022 15:50:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6EC423416FE for ; Thu, 28 Apr 2022 15:50:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A31C275 for ; Thu, 28 Apr 2022 15:50:23 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1651161015.98750a24b8c8adcdb8e6a0e37456bb75925f71c4.sam@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/install-qa-check.d/ X-VCS-Repository: proj/portage X-VCS-Files: bin/install-qa-check.d/10ignored-flags X-VCS-Directories: bin/install-qa-check.d/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 98750a24b8c8adcdb8e6a0e37456bb75925f71c4 X-VCS-Branch: master Date: Thu, 28 Apr 2022 15:50:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f947af0a-57d2-4fc3-a22b-ed50825910ba X-Archives-Hash: 5e1ce115f32f8ccc0f046b443221a466 commit: 98750a24b8c8adcdb8e6a0e37456bb75925f71c4 Author: Sam James gentoo org> AuthorDate: Tue Apr 19 21:33:03 2022 +0000 Commit: Sam James gentoo 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 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}[@]}\")"