]> git.seodisparate.com - AnotherAURHelper/commitdiff
Fix case where aur pkg-pull/get-remote-info fails
authorStephen Seo <seo.disparate@gmail.com>
Tue, 23 Apr 2024 06:52:46 +0000 (15:52 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Tue, 23 Apr 2024 06:52:46 +0000 (15:52 +0900)
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

index 7017465becaaee65f59cb8a1234981c5f4f07510..96f1825840310630a9926b5e9e46ee904f9a7ec5 100755 (executable)
--- 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