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

index 4947418497245b55e75e08ab9cbba042de7d5a98..f7260654c138f0f892981732d0cb0b4df71571f1 100755 (executable)
--- 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)