From: Daan De Meyer Date: Mon, 13 Jun 2022 15:04:13 +0000 (-0400) Subject: Rename run_pacman() to invoke_pacman() X-Git-Tag: v13~13^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bae09c6717e01529f36c8213275f1f57990507e2;p=thirdparty%2Fmkosi.git Rename run_pacman() to invoke_pacman() We already have invoke_dnf() and invoke_apt() so let's have invoke_pacman() for consistency. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index fdd6a3c0c..070f0d335 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -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.