From 3dad233e64095d75e60776a4dc76d252913e8060 Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Tue, 27 Feb 2024 15:56:37 +0100 Subject: [PATCH] Don't use --allowerasing for more DNF commands --- mock/py/mockbuild/config.py | 8 +++++++- releng/release-notes-next/allowerasing.bugfix | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 releng/release-notes-next/allowerasing.bugfix diff --git a/mock/py/mockbuild/config.py b/mock/py/mockbuild/config.py index 67027ca6e..2178c5b7c 100644 --- a/mock/py/mockbuild/config.py +++ b/mock/py/mockbuild/config.py @@ -328,7 +328,13 @@ def setup_default_config_opts(): config_opts['dnf5_disable_plugins'] = [] # No --allowerasing with remove, per # https://github.com/rpm-software-management/dnf5/issues/729 - config_opts["dnf5_avoid_opts"] = {"remove": ["--allowerasing"]} + config_opts["dnf5_avoid_opts"] = { + "remove": ["--allowerasing"], + "repoquery": ["--allowerasing"], + "makecache": ["--allowerasing"], + "search": ["--allowerasing"], + "info": ["--allowerasing"], + } config_opts['microdnf_command'] = '/usr/bin/microdnf' # "dnf-install" is special keyword which tells mock to use install but with DNF diff --git a/releng/release-notes-next/allowerasing.bugfix b/releng/release-notes-next/allowerasing.bugfix new file mode 100644 index 000000000..4991034a2 --- /dev/null +++ b/releng/release-notes-next/allowerasing.bugfix @@ -0,0 +1,2 @@ +Don't use the `--allowerasing` parameter for DNF subcommands such as +`repoquery`, `makecache`, `search`, and `info`.