diff options
author | Ulrich Müller <ulm@gentoo.org> | 2021-06-25 08:34:59 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2021-06-26 19:05:58 +0200 |
commit | 6b8c209958c23fd06731d4468a72b23216bab889 (patch) | |
tree | 53c65ba6189cb60c327ee3320558d5ba31bc47ee /eclass | |
parent | rpm.eclass: Support EAPI 8, some cleanup (diff) | |
download | gentoo-6b8c209958c23fd06731d4468a72b23216bab889.tar.gz gentoo-6b8c209958c23fd06731d4468a72b23216bab889.tar.bz2 gentoo-6b8c209958c23fd06731d4468a72b23216bab889.zip |
eutils.eclass: Minor touchups of EAPI conditionals
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/eutils.eclass | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index 2d90c35d9ade..5d1e0e8e83d5 100644 --- a/eclass/eutils.eclass +++ b/eclass/eutils.eclass @@ -23,7 +23,7 @@ if [[ -z ${_EUTILS_ECLASS} ]]; then _EUTILS_ECLASS=1 # implicitly inherited (now split) eclasses -case ${EAPI:-0} in +case ${EAPI} in 5|6) inherit desktop edos2unix epatch estack l10n ltprune multilib \ preserve-libs toolchain-funcs vcs-clean wrapper @@ -172,10 +172,9 @@ in_iuse() { has "${flag}" "${liuse[@]#[+-]}" } -fi +fi # EAPI 5 -case ${EAPI:-0} in -5|6) +if [[ ${EAPI} == [56] ]] ; then # @FUNCTION: eqawarn # @USAGE: [message] @@ -190,7 +189,6 @@ if ! declare -F eqawarn >/dev/null ; then } fi -;; -esac +fi # EAPI [56] fi |