From f2ca2a047da799c4cf1ecb1b9bee30199c58583d Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Tue, 23 Apr 2024 15:52:46 +0900 Subject: [PATCH] Fix case where aur pkg-pull/get-remote-info fails Previous implementation would halt the script on this kind of failure. New implementation now continues to the next aur pkg when this failure occurs. --- update.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/update.py b/update.py index 7017465..96f1825 100755 --- a/update.py +++ b/update.py @@ -1757,7 +1757,7 @@ def print_state_info_and_get_update_list( for pkg_name, pkg_dict in pkg_state.items(): name_space = " " * (max_name_len - len(pkg_name)) if "state" in pkg_dict: - state_length = 11 - len(pkg_dict["state"]) + state_length = 15 - len(pkg_dict["state"]) if state_length <= 0: state_length = 1 space_str = " " * state_length @@ -2507,8 +2507,10 @@ def main(): pkg_list[i], other_state=other_state, ) - print_state_info_and_get_update_list(other_state, pkg_state) - sys.exit(1) + pkg_state[pkg_list[i]]["state"] = "error_fetching" + pkg_state[pkg_list[i]]["build_status"] = "not_building" + i += 1 + continue if skip_on_same_ver and i >= furthest_checked: check_pkg_version_result = check_pkg_version( pkg_list[i], pkg_state, other_state["repo"], True, other_state