Handle more (any) exceptions when building

This commit is contained in:
Stephen Seo 2023-06-07 13:32:06 +09:00
parent a453b8cd34
commit 56ffb57fe3

View file

@ -1254,6 +1254,15 @@ def update_pkg_list(
) )
pkg_state[pkg]["build_status"] = "fail" pkg_state[pkg]["build_status"] = "fail"
continue continue
except BaseException:
log_print(
'ERROR: Failed to build pkg "{}" in chroot (unknown Exception)'.format(
pkg
),
other_state=other_state,
)
pkg_state[pkg]["build_status"] = "fail"
continue
if no_store: if no_store:
pkg_state[pkg]["build_status"] = "success" pkg_state[pkg]["build_status"] = "success"