]> git.seodisparate.com - AnotherAURHelper/commitdiff
Fix confirm_result() depending on global
authorStephen Seo <seo.disparate@gmail.com>
Fri, 17 Nov 2023 11:55:17 +0000 (20:55 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Fri, 17 Nov 2023 11:55:17 +0000 (20:55 +0900)
update.py

index f7260654c138f0f892981732d0cb0b4df71571f1..694bb9b8bc9e90dd1181b33db36035956be94516 100755 (executable)
--- a/update.py
+++ b/update.py
@@ -1587,7 +1587,7 @@ def get_latest_pkg(pkg: str, cache_dir: str):
         return None
 
 
-def confirm_result(pkg: str, state_result: str):
+def confirm_result(pkg: str, state_result: str, other_state: dict[str, Any]):
     """Prompts the user the action to take for a pkg after checking its
     PKGBUILD.
 
@@ -2255,7 +2255,9 @@ def main():
                     False,
                     other_state,
                 )
-            confirm_result_result = confirm_result(pkg_list[i], state_result)
+            confirm_result_result = confirm_result(
+                pkg_list[i], state_result, other_state
+            )
             if confirm_result_result == "continue":
                 pkg_state[pkg_list[i]]["state"] = state_result
                 pkg_state[pkg_list[i]]["build_status"] = (