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
1 changed files with 9 additions and 0 deletions

View File

@ -1254,6 +1254,15 @@ def update_pkg_list(
)
pkg_state[pkg]["build_status"] = "fail"
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:
pkg_state[pkg]["build_status"] = "success"