summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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}
}