Compare commits
2 commits
a453b8cd34
...
8a86babb8c
Author | SHA1 | Date | |
---|---|---|---|
Stephen Seo | 8a86babb8c | ||
Stephen Seo | 56ffb57fe3 |
15
update.py
15
update.py
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue