summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-01-01 13:23:35 +0100
committerMichał Górny <mgorny@gentoo.org>2016-01-08 06:14:36 +0100
commite027c083cf2162eb88adfc73a77a2a52b8479753 (patch)
tree1a75b432d8c2164e7eff981b4f6ef789c7a01b80 /eclass/scons-utils.eclass
parentscons-utils.eclass: escons doc, 'die' does not respect nonfatal (diff)
downloadgentoo-e027c083cf2162eb88adfc73a77a2a52b8479753.tar.gz
gentoo-e027c083cf2162eb88adfc73a77a2a52b8479753.tar.bz2
gentoo-e027c083cf2162eb88adfc73a77a2a52b8479753.zip
scons-utils.eclass: escons, invert EAPI check to cover future EAPIs
Diffstat (limited to 'eclass/scons-utils.eclass')
-rw-r--r--eclass/scons-utils.eclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/scons-utils.eclass b/eclass/scons-utils.eclass
index fa82236a7543..4defbac9c496 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}
}