From: Daan De Meyer Date: Thu, 13 Apr 2023 08:04:44 +0000 (+0200) Subject: Add --needed to pacman invocation X-Git-Tag: v15~260 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=779484101987048b820b07a6111bcb0e8d5ebc1d;p=thirdparty%2Fmkosi.git Add --needed to pacman invocation When installing build packages, we might install packages that were already installed previously. Let's make sure we don't reinstall those. --- diff --git a/mkosi/distributions/arch.py b/mkosi/distributions/arch.py index df7ffbb10..6a309ed24 100644 --- a/mkosi/distributions/arch.py +++ b/mkosi/distributions/arch.py @@ -94,6 +94,7 @@ def invoke_pacman(state: MkosiState, packages: Sequence[str]) -> None: "pacman", "--config", state.workspace / "pacman.conf", "--noconfirm", + "--needed", "-Sy", *sort_packages(packages), ]