From 61e6f75281af007d6afc013de971431a6a1b8fde Mon Sep 17 00:00:00 2001 From: Ondrej Ezr Date: Mon, 27 Nov 2023 23:00:10 +0100 Subject: [PATCH] dnf-json: Allow passing module_hotfixes Allow passing module_hotfixes as repo option, it will allow disabling of modularity filtering per repository. --- dnf-json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dnf-json b/dnf-json index 260b9723b..ad6711b31 100755 --- a/dnf-json +++ b/dnf-json @@ -119,6 +119,11 @@ class Solver(): # we set the expiration to a short time period, rather than 0. repo.metadata_expire = desc.get("metadata_expire", "20s") + # This option if True disables modularization filtering. Effectively + # disabling modularity for given repository. + if "module_hotfixes" in desc: + repo.module_hotfixes = desc["module_hotfixes"] + return repo @staticmethod