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 7E4001581D3 for ; Sat, 18 May 2024 14:04:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 53A05E2A37; Sat, 18 May 2024 14:04:42 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 3A336E2A37 for ; Sat, 18 May 2024 14:04:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 6A39233BF08 for ; Sat, 18 May 2024 14:04:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A0C7C1AD8 for ; Sat, 18 May 2024 14:04:39 +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: <1716031723.61e6f15aab5524331946d5172fcd73d30c3c16f0.sam@gentoo> Subject: [gentoo-commits] proj/gentoo-functions:master commit in: / X-VCS-Repository: proj/gentoo-functions X-VCS-Files: functions.sh X-VCS-Directories: / X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 61e6f15aab5524331946d5172fcd73d30c3c16f0 X-VCS-Branch: master Date: Sat, 18 May 2024 14:04:39 +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: b976871e-6eea-4f8a-9a9d-075e53de9c0b X-Archives-Hash: 3bac9976e37dcef6dcc90f92d4200c59 commit: 61e6f15aab5524331946d5172fcd73d30c3c16f0 Author: Kerin Millar plushkava net> AuthorDate: Sat May 18 10:26:00 2024 +0000 Commit: Sam James gentoo org> CommitDate: Sat May 18 11:28:43 2024 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-functions.git/commit/?id=61e6f15a Add an eqawarn() function In portage's isolated-functions, eqawarn() prints a warning with the asterisk in dark yellow as opposed to bright yellow. To my mind, this does not merit yet another cookier-cutter function in gentoo-functions. So, for now, implement it as an ewarn() wrapper. Signed-off-by: Kerin Millar plushkava.net> Bug: https://bugs.gentoo.org/878505 functions.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/functions.sh b/functions.sh index dd5bb76..2efcf1f 100644 --- a/functions.sh +++ b/functions.sh @@ -160,6 +160,15 @@ eoutdent() _esetdent "$(( ${#genfun_indent} - $1 ))" } +# +# Prints a QA warning message, provided that EINFO_QUIET is false. If printed, +# the message shall also be conveyed to the esyslog function. For now, this is +# implemented merely as an ewarn wrapper. +# +eqawarn() { + ewarn "$@" +} + # # Invokes the logger(1) utility, provided that EINFO_LOG is true. The first # parameter shall be taken as a priority level, the second as the message tag,