Skip to content

Commit 2d40e2c

Browse files
Daniel Machj-mracek
authored andcommitted
[module] Move 'hotfixes' conf option to libdnf and rename it to 'module_hotfixes'.
1 parent 5ab8916 commit 2d40e2c

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

dnf/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def update_include_nevras(name, stream):
305305
exclude_nevras_set.update(exclude_set)
306306

307307
# collect all hotfix repo repoids - we don't filter them at all
308-
hotfix_repos = [i.id for i in self.repos.iter_enabled() if i.hotfixes._get()]
308+
hotfix_repos = [i.id for i in self.repos.iter_enabled() if i.module_hotfixes]
309309
hotfix_repos.extend([hawkey.SYSTEM_REPO_NAME, hawkey.CMDLINE_REPO_NAME])
310310

311311
# collect all RPM $names for bare RPMs filtering

dnf/conf/config.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -590,10 +590,6 @@ def __init__(self, parent, section=None, parser=None):
590590
parent._config if parent else cfg.ConfigMain()), section, parser)
591591
self._masterConfig = parent._config if parent else cfg.ConfigMain()
592592

593-
# modularity
594-
# TODO move to libdnf
595-
self.hotfixes = BoolOption(False)
596-
597593
def _configure_from_options(self, opts):
598594
"""Configure repos from the opts. """
599595

doc/conf_ref.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,16 @@ or :ref:`mirrorlist <mirrorlist-label>` option definition.
303303

304304
URL of a mirrorlist for the repository.
305305

306+
.. _module_hotfixes-label:
307+
308+
``module_hofixes``
309+
:ref:`boolean <boolean-label>`
310+
311+
Set this to True to disable module RPM filtering and make all RPMs from the repository available. The default is False.
312+
This allows user to create a repository with cherry-picked hotfixes that are included in a package set on a modular system.
313+
314+
.. _mirrorlist-label:
315+
306316
``name``
307317
:ref:`string <string-label>`
308318

0 commit comments

Comments
 (0)