]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
dnf: Enable builddep plugin
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 26 Jul 2023 15:47:35 +0000 (17:47 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 31 Jul 2023 10:00:09 +0000 (12:00 +0200)
This one is actually useful and has to be invoked explicitly so
there's no harm in enabling it.

mkosi/installer/dnf.py

index decc6c004f8c148a9d855c19391dee6ba086eb36..bad6d20eb7b7cb0f35e0c86ce7275166379a6aee 100644 (file)
@@ -88,7 +88,8 @@ def dnf_cmd(state: MkosiState) -> list[str]:
         f"--setopt=varsdir={state.pkgmngr / 'etc/dnf/vars'}",
         f"--setopt=persistdir={state.pkgmngr / 'var/lib/dnf'}",
         "--setopt=check_config_file_age=0",
-        "--no-plugins" if dnf.endswith("dnf5") else "--noplugins",
+        "--disableplugin=*",
+        "--enableplugin=builddep",
     ]
 
     if not state.config.repository_key_check: