]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Use right dnf5 options for plugin stuff
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 5 Nov 2023 12:14:47 +0000 (13:14 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 6 Nov 2023 15:06:06 +0000 (16:06 +0100)
Let's use the non-compat dnf5 options for plugins.

mkosi/installer/dnf.py

index 551bb0f1d99880cf9a9614b81e0d019a9edc79e6..79a51720a534393209ae068cbaa3f1fe8d88bd64 100644 (file)
@@ -111,8 +111,8 @@ def dnf_cmd(state: MkosiState) -> list[PathString]:
         f"--setopt=varsdir={state.pkgmngr / 'etc/dnf/vars'}",
         f"--setopt=persistdir={state.pkgmngr / 'var/lib/dnf'}",
         "--setopt=check_config_file_age=0",
-        "--disableplugin=*",
-        "--enableplugin=builddep",
+        "--disable-plugin=*" if dnf.endswith("dnf5") else "--disableplugin=*",
+        "--enable-plugin=builddep" if dnf.endswith("dnf5") else "--enableplugin=builddep",
     ]
 
     if not state.config.repository_key_check: