Do not add conflicts when builds are identical

Fixes: #1660
This commit is contained in:
Brendan Reilly
2020-11-10 11:31:02 -05:00
parent 36ca6c6432
commit ed86a2ca72
2 changed files with 52 additions and 1 deletions

View File

@@ -275,7 +275,10 @@ def handle_collisions_with_base_module_rpms(mmd, arches):
for rpm in non_bm_rpms:
rpm_name = kobo.rpmlib.parse_nvra(rpm)["name"]
if rpm_name in name_to_nevras:
conflicts = conflicts | name_to_nevras[rpm_name]
# Do not add conflicts for identical NEVRAs
nevras = {n for n in name_to_nevras[rpm_name] if n not in non_bm_rpms}
if nevras:
conflicts = conflicts | nevras
# Add the conflicting NEVRAs to `ursine_rpms` so the Conflicts are later generated for them
# in the KojiModuleBuilder.