From 4fd128e27b4b62468999a831e91e8e6c079bd8cf Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Fri, 17 Nov 2023 20:55:17 +0900 Subject: [PATCH] Fix confirm_result() depending on global --- update.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/update.py b/update.py index f726065..694bb9b 100755 --- 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"] = (