createrepo: Stop including modulemd in debug repos

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ář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2018-06-27 12:27:42 +02:00
parent 6c14236562
commit d29e56c7d8
1 changed files with 1 additions and 1 deletions

View File

@ -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 = []