dnf-json: Allow passing module_hotfixes

Allow passing module_hotfixes as repo option,
it will allow disabling of modularity filtering per repository.
This commit is contained in:
Ondrej Ezr 2023-11-27 23:00:10 +01:00 committed by Tomáš Hozza
parent 9b53d3e6a6
commit 61e6f75281

View file

@ -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