aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2024-02-03 11:30:53 +0500
committerAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2024-02-05 00:23:20 +0500
commitcfdd31feb59d000371524571a6ff1e435e58afbc (patch)
treed7e248557ea17d1ea99f131ff7bb7dba64e3db13 /eclass/databases.eclass
parentphosh-base/phosh-shell: add verify-sig (diff)
downloadguru-cfdd31feb59d000371524571a6ff1e435e58afbc.tar.gz
guru-cfdd31feb59d000371524571a6ff1e435e58afbc.tar.bz2
guru-cfdd31feb59d000371524571a6ff1e435e58afbc.zip
databases.eclass: fix "--add-deps" helper
It's called in ebuild scope so "+=" should be used. Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'eclass/databases.eclass')
-rw-r--r--eclass/databases.eclass11
1 files changed, 5 insertions, 6 deletions
diff --git a/eclass/databases.eclass b/eclass/databases.eclass
index 1c640d3ee..721ec0e59 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