mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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>
This commit is contained in:
@@ -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}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user