1 |
commit: 6dd449a09d9f6ff86ae9f682de6f957429ad4d1d |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 28 07:49:38 2016 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 28 07:51:10 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6dd449a0 |
7 |
|
8 |
cmake-utils.eclass: Fix inverted logic on EAPI check |
9 |
|
10 |
Gentoo-Bugs: https://bugs.gentoo.org/show_bug.cgi?id=573132 |
11 |
|
12 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
13 |
|
14 |
eclass/cmake-utils.eclass | 2 +- |
15 |
1 file changed, 1 insertion(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass |
18 |
index 01de9a5..99c0f76 100644 |
19 |
--- a/eclass/cmake-utils.eclass |
20 |
+++ b/eclass/cmake-utils.eclass |
21 |
@@ -603,7 +603,7 @@ enable_cmake-utils_src_configure() { |
22 |
local mycmakeargstype=$(declare -p mycmakeargs 2>&-) |
23 |
if [[ "${mycmakeargstype}" != "declare -a mycmakeargs="* ]]; then |
24 |
if [[ -n "${mycmakeargstype}" ]] ; then |
25 |
- if [[ ${EAPI} != [2345] ]]; then |
26 |
+ if [[ ${EAPI} == [2345] ]]; then |
27 |
eqawarn "Declaring mycmakeargs as a variable is deprecated. Please use an array instead." |
28 |
else |
29 |
die "Declaring mycmakeargs as a variable is banned in EAPI=${EAPI}. Please use an array instead." |