Compare commits

...

2 commits

View file

@ -203,7 +203,11 @@ class ArchPkgVersion:
def log_print(*args, **kwargs):
"""Prints to stdout, then logs to GLOBAL_LOG_FILE."""
if "other_state" in kwargs and "is_timed" in kwargs["other_state"]:
if (
"other_state" in kwargs
and "is_timed" in kwargs["other_state"]
and kwargs["other_state"]["is_timed"]
):
t = datetime.datetime.now(datetime.timezone.utc).strftime(
"%Y-%m-%d_%H-%M-%S_%Z"
)
@ -1254,6 +1258,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"