]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Add --needed to pacman invocation
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 13 Apr 2023 08:04:44 +0000 (10:04 +0200)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Thu, 13 Apr 2023 09:40:21 +0000 (11:40 +0200)
When installing build packages, we might install packages that were
already installed previously. Let's make sure we don't reinstall
those.

mkosi/distributions/arch.py

index df7ffbb10c15b0582c80d57c426c200249ea63dd..6a309ed24a887816ec0836600b932e82b33eff5b 100644 (file)
@@ -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),
     ]