From c673eab2b5461ceab752b4ec8134356f576a5516 Mon Sep 17 00:00:00 2001 From: Diaa Sami Date: Wed, 7 Feb 2024 17:58:57 +0100 Subject: [PATCH] osbuild-depsolve-dnf: port module_hotfixes support over from https://github.com/osbuild/osbuild-composer/commit/61e6f75281af007d6afc013de971431a6a1b8fde --- tools/osbuild-depsolve-dnf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/osbuild-depsolve-dnf b/tools/osbuild-depsolve-dnf index a54473b8..1938fe1e 100755 --- a/tools/osbuild-depsolve-dnf +++ b/tools/osbuild-depsolve-dnf @@ -121,6 +121,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