From: Daan De Meyer Date: Sun, 5 Nov 2023 12:14:47 +0000 (+0100) Subject: Use right dnf5 options for plugin stuff X-Git-Tag: v19~26^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1acd3d7278dc0d0c7bc4784a5159abe2e8aba2dc;p=thirdparty%2Fmkosi.git Use right dnf5 options for plugin stuff Let's use the non-compat dnf5 options for plugins. --- diff --git a/mkosi/installer/dnf.py b/mkosi/installer/dnf.py index 551bb0f1d..79a51720a 100644 --- a/mkosi/installer/dnf.py +++ b/mkosi/installer/dnf.py @@ -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: