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 7F17A15815E for ; Sun, 4 Feb 2024 19:26:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C64672BC017; Sun, 4 Feb 2024 19:26:02 +0000 (UTC) Received: from smtp.gentoo.org (mail.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A802B2BC015 for ; Sun, 4 Feb 2024 19:26:02 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DAE1234313E for ; Sun, 4 Feb 2024 19:26:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 77DF41492 for ; Sun, 4 Feb 2024 19:26:00 +0000 (UTC) From: "Anna Vyalkova" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anna Vyalkova" Message-ID: <1707074600.cfdd31feb59d000371524571a6ff1e435e58afbc.cybertailor@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: eclass/ X-VCS-Repository: repo/proj/guru X-VCS-Files: eclass/databases.eclass X-VCS-Directories: eclass/ X-VCS-Committer: cybertailor X-VCS-Committer-Name: Anna Vyalkova X-VCS-Revision: cfdd31feb59d000371524571a6ff1e435e58afbc X-VCS-Branch: dev Date: Sun, 4 Feb 2024 19:26:00 +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: 758d97cc-36e7-47a6-8d79-8e319dc7ffd3 X-Archives-Hash: e0f95c5af3f3f0460288648102746cf6 commit: cfdd31feb59d000371524571a6ff1e435e58afbc Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Sat Feb 3 06:30:53 2024 +0000 Commit: Anna Vyalkova sysrq in> CommitDate: Sun Feb 4 19:23:20 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cfdd31fe databases.eclass: fix "--add-deps" helper It's called in ebuild scope so "+=" should be used. Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> eclass/databases.eclass | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/eclass/databases.eclass b/eclass/databases.eclass index 1c640d3ee9..721ec0e59d 100644 --- a/eclass/databases.eclass +++ b/eclass/databases.eclass @@ -192,12 +192,11 @@ _databases_add_deps() { local funcname=${1?} local useflag=${2?} - BDEPEND="${useflag}? ( ${DATABASES_DEPEND[${funcname:1}]} )" - IUSE="${useflag}" - [[ ${useflag} == "test" ]] && - RESTRICT="!test? ( test )" - - return 0 + IUSE+=" ${useflag}" + BDEPEND+=" ${useflag}? ( ${DATABASES_DEPEND[${funcname:1}]} )" + if [[ ${useflag} == "test" ]]; then + RESTRICT+= "!test? ( test )" + fi } # @FUNCTION: _databases_stop_service