From 89d798006b38be41e7168401b10265f0ab85f987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Fri, 18 May 2018 08:56:22 +0200 Subject: [PATCH] createrepo: Add module arch to metadata MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lubomír Sedlář --- pungi/phases/createrepo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pungi/phases/createrepo.py b/pungi/phases/createrepo.py index 856fced4..b45efdd3 100644 --- a/pungi/phases/createrepo.py +++ b/pungi/phases/createrepo.py @@ -35,6 +35,7 @@ from ..wrappers.createrepo import CreaterepoWrapper from .base import PhaseBase from ..util import find_old_compose, temp_dir, get_arch_variant_data from pungi import Modulemd +from pungi.arch import tree_arch_to_yum_arch import productmd.rpms import productmd.modules @@ -194,6 +195,7 @@ def create_variant_repo(compose, arch, variant, pkg_type, modules_metadata=None) # Create copy of architecture specific mmd to filter out packages # which are not part of this particular repo. repo_mmd = Modulemd.Module.new_from_string(mmd.dumps()) + repo_mmd.set_arch(tree_arch_to_yum_arch(arch)) artifacts = repo_mmd.get_rpm_artifacts() # Modules without RPMs are also valid.