]> git.seodisparate.com - AnotherAURHelper/commitdiff
Fix prefetch_dependencies fn
authorStephen Seo <seo.disparate@gmail.com>
Mon, 8 Apr 2024 03:00:08 +0000 (12:00 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Mon, 8 Apr 2024 03:00:08 +0000 (12:00 +0900)
Fixed invalid log of packages to prefetch (tried to read invalid
variable name that changed from "pkg" to "pkgs").

update.py

index e1e2314f8119d4620bbc2dd72034318419d8ea5a..ab968a5b2964d08300515d5316b5b7e585697471 100755 (executable)
--- a/update.py
+++ b/update.py
@@ -2063,7 +2063,7 @@ def prepare_user_chroot(other_state: dict[str, Any]):
 def prefetch_dependencies(pkg_names: [str], other_state: dict[str, Any]):
     """Returns "fetched" on success."""
     log_print(
-        f'Prefetching package "{pkg_name}" with "pacman -Sw"...',
+        f'Prefetching packages "{pkg_names}" with "pacman -Sw"...',
         other_state=other_state,
     )
     command_list = ["/usr/bin/env", "sudo", "pacman", "--noconfirm", "-Sw"]