From: Justin Lecher Date: Thu, 28 Jan 2016 07:49:38 +0000 (+0100) Subject: cmake-utils.eclass: Fix inverted logic on EAPI check X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6dd449a09d9f6ff86ae9f682de6f957429ad4d1d;p=gentoo.git 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 --- 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."