packages.py: cmd_build(): batch CROSSDIRECT_PKGS installation

This commit is contained in:
InsanePrawn 2021-10-17 03:52:26 +02:00
parent c22b509347
commit 135ffc5def

View file

@ -630,8 +630,8 @@ def cmd_build(paths: list[str], force=False, arch=None):
enable_crossdirect=False, enable_crossdirect=False,
enable_ccache=False, enable_ccache=False,
) )
for pkg in CROSSDIRECT_PKGS:
subprocess.run(['pacman', '-Syy', pkg, '--noconfirm', '--needed']) subprocess.run(['pacman', '-Syy', '--noconfirm', '--needed'] + CROSSDIRECT_PKGS)
binfmt_register(arch) binfmt_register(arch)
build_packages_by_paths( build_packages_by_paths(