mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-05-11 18:37:25 +08:00
Check dnf version before skipping base module conflicts
The base module conflict generation was skipped for local builds
in 6b2e5be93a because libdnf wasn't ported to libmodulemd yet -
that was done in libdnf-0.45, so only warn and skip for versions of
dnf too old to require libdnf-0.45.
(Don't just unconditionally skip check/warning in case someone is
doing local module builds on RHEL 8.)
This commit is contained in:
@@ -291,7 +291,8 @@ def test_handle_collisions_with_base_module_rpms(mock_grft, mock_get_session):
|
||||
}
|
||||
mock_grft.side_effect = [bm_rpms, non_bm_rpms]
|
||||
|
||||
default_modules.handle_collisions_with_base_module_rpms(mmd, ["aarch64", "x86_64"])
|
||||
default_modules.handle_collisions_with_base_module_rpms(mmd, ["aarch64", "x86_64"],
|
||||
force_for_old_dnf=True)
|
||||
|
||||
mock_get_session.assert_called_once()
|
||||
xmd_mbs = mmd.get_xmd()["mbs"]
|
||||
|
||||
Reference in New Issue
Block a user