Fix prefetch_dependencies fn

Fixed invalid log of packages to prefetch (tried to read invalid
variable name that changed from "pkg" to "pkgs").
This commit is contained in:
Stephen Seo 2024-04-08 12:00:08 +09:00
parent 99f3d915c6
commit 3cc1a0b583

View file

@ -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"]