From 2b2a3c0dc3fb075967e06626f8c22cd5eb0320a1 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Fri, 17 Nov 2023 20:53:21 +0900 Subject: [PATCH] Fix get_pkg_current_version() depending on global --- update.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/update.py b/update.py index 4947418..f726065 100755 --- a/update.py +++ b/update.py @@ -573,7 +573,7 @@ def check_pkg_version( (installed pkg is up to date).""" status, current_epoch, current_version = get_pkg_current_version( - pkg, pkg_state, repo + pkg, pkg_state, repo, other_state ) if status != "fetched": return status @@ -874,7 +874,9 @@ def get_srcinfo_check_result( return "fail" -def get_pkg_current_version(pkg: str, pkg_state: dict[str, Any], repo: str): +def get_pkg_current_version( + pkg: str, pkg_state: dict[str, Any], repo: str, other_state: dict[str, Any] +): """Fetches the version info and returns status of fetching and the version. Returns (status, epoch, version)