From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 952341384B4 for ; Fri, 1 Jan 2016 16:44:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B6D2E21C089; Fri, 1 Jan 2016 16:41:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E977B21C085 for ; Fri, 1 Jan 2016 16:41:39 +0000 (UTC) Received: from localhost.localdomain (d202-251.icpnet.pl [109.173.202.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 220E7340A3B; Fri, 1 Jan 2016 16:41:36 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 05/15] scons-utils.eclass: escons, invert EAPI check to cover future EAPIs Date: Fri, 1 Jan 2016 17:41:11 +0100 Message-Id: <1451666481-22145-6-git-send-email-mgorny@gentoo.org> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1451666481-22145-1-git-send-email-mgorny@gentoo.org> References: <1451666481-22145-1-git-send-email-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Archives-Salt: 917fc8f4-79a2-43d6-9039-f310993a4508 X-Archives-Hash: 5dc956d8342512274f181fac19ffadc9 --- eclass/scons-utils.eclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eclass/scons-utils.eclass b/eclass/scons-utils.eclass index fa82236..4defbac 100644 --- a/eclass/scons-utils.eclass +++ b/eclass/scons-utils.eclass @@ -120,7 +120,9 @@ escons() { "${@}" ret=${?} - [[ ${ret} -ne 0 ]] && has "${EAPI:-0}" 4 5 && die "escons failed." + if [[ ${ret} -ne 0 ]]; then + [[ ${EAPI:-0} != [0123] ]] && die "escons failed." + fi return ${ret} } -- 2.6.4