]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Rename run_pacman() to invoke_pacman()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 13 Jun 2022 15:04:13 +0000 (11:04 -0400)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 17 Jun 2022 18:38:14 +0000 (14:38 -0400)
We already have invoke_dnf() and invoke_apt() so let's have
invoke_pacman() for consistency.

mkosi/__init__.py

index fdd6a3c0c783550c9449553f6ecfb5d7f2d3e252..070f0d3357629760acb09807953599f896bee667 100644 (file)
@@ -2957,7 +2957,7 @@ def install_ubuntu(args: MkosiArgs, root: Path, do_run_build_script: bool) -> No
     install_debian_or_ubuntu(args, root, do_run_build_script=do_run_build_script)
 
 
-def run_pacman(root: Path, pacman_conf: Path, packages: Set[str]) -> None:
+def invoke_pacman(root: Path, pacman_conf: Path, packages: Set[str]) -> None:
     run(["pacman", "--config", pacman_conf, "--noconfirm", "-Sy", *sort_packages(packages)])
 
 
@@ -3125,7 +3125,7 @@ def install_arch(args: MkosiArgs, root: Path, do_run_build_script: bool) -> None
         add_packages(args, packages, "openssh")
 
     with mount_api_vfs(args, root):
-        run_pacman(root, pacman_conf, packages)
+        invoke_pacman(root, pacman_conf, packages)
 
     # Arch still uses pam_securetty which prevents root login into
     # systemd-nspawn containers. See https://bugs.archlinux.org/task/45903.