From 063d13264a2f93fa084922ab8aeee04349bac05a Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Thu, 9 Nov 2023 16:08:49 +0900 Subject: [PATCH] Set "build_status" on build failures --- update.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/update.py b/update.py index 387ddde..3d9539f 100755 --- a/update.py +++ b/update.py @@ -1201,6 +1201,7 @@ def update_pkg_list( log_print( "ERROR: Failed to get sudo privileges", other_state=other_state ) + pkg_state[pkg]["build_status"] = "get_sudo_fail" sys.exit(1) for pkg in pkgs: pkgdir = os.path.join(other_state["clones_dir"], pkg) @@ -1232,7 +1233,7 @@ def update_pkg_list( log_print( f'ERROR: Failed to verify pkg "{pkg}"', other_state=other_state ) - pkg_state[pkg]["build_status"] = "fail" + pkg_state[pkg]["build_status"] = "pkg_verify_fail" continue log_print(f'Building "{pkg}"...', other_state=other_state) @@ -1259,6 +1260,7 @@ def update_pkg_list( other_state=other_state, ) failure = True + pkg_state[pkg]["build_status"] = "get_dep_fail" break command_list.insert(2, "-I") command_list.insert(3, dep_fullpath) @@ -1274,6 +1276,7 @@ def update_pkg_list( other_state=other_state, ) failure = True + pkg_state[pkg]["build_status"] = "get_aur_dep_fail" break command_list.insert(2, "-I") command_list.insert(3, aur_dep_fullpath) @@ -1356,7 +1359,7 @@ def update_pkg_list( ), other_state=other_state, ) - pkg_state[pkg]["build_status"] = "fail" + pkg_state[pkg]["build_status"] = "build_fail" continue if no_store: