diff --git a/pungi/phases/pkgset/sources/source_koji.py b/pungi/phases/pkgset/sources/source_koji.py index 65d0a407..5fa1fff3 100644 --- a/pungi/phases/pkgset/sources/source_koji.py +++ b/pungi/phases/pkgset/sources/source_koji.py @@ -254,7 +254,8 @@ def _get_modules_from_pdc(compose, session, variant, variant_tags): _add_module_to_variant(variant, mmd, pdc_module["rpms"]) tag = pdc_module["koji_tag"] - uid = pdc_module["variant_uid"] + uid = ':'.join([pdc_module['variant_name'], pdc_module['variant_version'], + pdc_module['variant_release'], pdc_module['variant_context']]) variant_tags[variant].append(tag) # Store mapping module-uid --> koji_tag into variant. diff --git a/tests/test_pkgset_source_koji.py b/tests/test_pkgset_source_koji.py index 7450a903..2126ee6b 100644 --- a/tests/test_pkgset_source_koji.py +++ b/tests/test_pkgset_source_koji.py @@ -142,7 +142,7 @@ data: - MIT """ - get_module.return_value = {'abc': 'def', 'modulemd': modulemd, 'rpms': [], 'koji_tag': 'taggg', 'variant_uid': 'modulenamefoo-rhel-1'} + get_module.return_value = {'abc': 'def', 'modulemd': modulemd, 'rpms': [], 'koji_tag': 'taggg', 'variant_uid': 'modulenamefoo-rhel-1', 'variant_name': 'modulenamefoo', 'variant_version': 'rhel', 'variant_release': '1', 'variant_context': '00000000'} for name, variant in self.compose.variants.items(): variant.get_modules = mock.MagicMock() if name == 'Server':