pkgset: Store module tag only if module is used
When a module is skipped from the compose, we should not add it to a mapping of module tags. If it's there, we then spend time building a repo for the module, and it get's passed to buildinstall, despite the packages not being supposed to be included in the compose. If the packages are not included in any variant, they shouldn't be available to buildinstall either. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
477dcf37d9
commit
5b5069175d
@ -615,14 +615,6 @@ def _get_modules_from_koji_tags(
|
||||
for build in latest_builds:
|
||||
# Get the Build from Koji to get modulemd and module_tag.
|
||||
build = koji_proxy.getBuild(build["build_id"])
|
||||
module_tag = (
|
||||
build.get("extra", {})
|
||||
.get("typeinfo", {})
|
||||
.get("module", {})
|
||||
.get("content_koji_tag", "")
|
||||
)
|
||||
|
||||
variant_tags[variant].append(module_tag)
|
||||
|
||||
nsvc = _add_module_to_variant(
|
||||
koji_wrapper,
|
||||
@ -635,6 +627,14 @@ def _get_modules_from_koji_tags(
|
||||
if not nsvc:
|
||||
continue
|
||||
|
||||
module_tag = (
|
||||
build.get("extra", {})
|
||||
.get("typeinfo", {})
|
||||
.get("module", {})
|
||||
.get("content_koji_tag", "")
|
||||
)
|
||||
variant_tags[variant].append(module_tag)
|
||||
|
||||
tag_to_mmd.setdefault(module_tag, {})
|
||||
for arch in variant.arch_mmds:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user