commit: d66f119323ca954a35946b9f3eeeaae0c6c69d0b Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu Nov 23 14:55:18 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu Nov 23 14:57:11 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d66f1193
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 <AT> gentoo.org> eclass/multibuild.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} }