From d29e56c7d8f4ff37c16389ac72ecaf8dd37c6721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Wed, 27 Jun 2018 12:27:42 +0200 Subject: [PATCH] createrepo: Stop including modulemd in debug repos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Debug packages are usually installed by exact NVR, and having two repos providing the same module (but with different packages) is confusing for the tooling. Signed-off-by: Lubomír Sedlář --- pungi/phases/createrepo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pungi/phases/createrepo.py b/pungi/phases/createrepo.py index e6f691ee..96aab927 100644 --- a/pungi/phases/createrepo.py +++ b/pungi/phases/createrepo.py @@ -212,7 +212,7 @@ def create_variant_repo(compose, arch, variant, pkg_type, modules_metadata=None) shutil.copy2(product_id_path, os.path.join(repo_dir, "repodata", "productid")) # call modifyrepo to inject modulemd if needed - if arch in variant.arch_mmds and Modulemd is not None: + if pkg_type == "rpm" and arch in variant.arch_mmds and Modulemd is not None: modules = [] metadata = []