From 6dd449a09d9f6ff86ae9f682de6f957429ad4d1d Mon Sep 17 00:00:00 2001 From: Justin Lecher Date: Thu, 28 Jan 2016 08:49:38 +0100 Subject: [PATCH] cmake-utils.eclass: Fix inverted logic on EAPI check Gentoo-Bugs: https://bugs.gentoo.org/show_bug.cgi?id=573132 Signed-off-by: Justin Lecher --- eclass/cmake-utils.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index 01de9a5ad936..99c0f7649400 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -603,7 +603,7 @@ enable_cmake-utils_src_configure() { local mycmakeargstype=$(declare -p mycmakeargs 2>&-) if [[ "${mycmakeargstype}" != "declare -a mycmakeargs="* ]]; then if [[ -n "${mycmakeargstype}" ]] ; then - if [[ ${EAPI} != [2345] ]]; then + if [[ ${EAPI} == [2345] ]]; then eqawarn "Declaring mycmakeargs as a variable is deprecated. Please use an array instead." else die "Declaring mycmakeargs as a variable is banned in EAPI=${EAPI}. Please use an array instead." -- 2.26.2