summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-11-23 15:55:18 +0100
committerMichał Górny <mgorny@gentoo.org>2023-11-23 15:57:11 +0100
commitd66f119323ca954a35946b9f3eeeaae0c6c69d0b (patch)
tree02ac393c629dcb53f7aade694fe069e284fdaeed /eclass
parentdev-python/jupyterlab-pygments: Bump to 0.3.0 (diff)
downloadgentoo-d66f119323ca954a35946b9f3eeeaae0c6c69d0b.tar.gz
gentoo-d66f119323ca954a35946b9f3eeeaae0c6c69d0b.tar.bz2
gentoo-d66f119323ca954a35946b9f3eeeaae0c6c69d0b.zip
multibuild.eclass: Fix passing return value from variants
Move the misplaced return value saving into the variant loop, so that any non-successful return code is saved (as intended) rather than just the last one. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/multibuild.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/multibuild.eclass b/eclass/multibuild.eclass
index d8a5862731bf..f15d3327c7dd 100644
--- a/eclass/multibuild.eclass
+++ b/eclass/multibuild.eclass
@@ -129,8 +129,8 @@ multibuild_foreach_variant() {
_multibuild_run "${@}" \
> >(exec tee -a "${T}/build-${MULTIBUILD_ID}.log") 2>&1
lret=${?}
+ [[ ${ret} -eq 0 && ${lret} -ne 0 ]] && ret=${lret}
done
- [[ ${ret} -eq 0 && ${lret} -ne 0 ]] && ret=${lret}
return ${ret}
}