Correctly set input and fultree_exclude flags for debuginfo

This only matters for composes that use the functionality for trimming
addon packages from parent variants.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
(cherry picked from commit 947ddf0a1a)
This commit is contained in:
Lubomír Sedlář 2023-09-22 10:17:19 +02:00 committed by Stepan Oksanichenko
parent e570aa7726
commit 58f96531c7
Signed by: soksanichenko
GPG Key ID: AB9983172AB1E45B

View File

@ -832,6 +832,12 @@ class Gather(GatherBase):
continue
if self.is_from_lookaside(i):
self._set_flag(i, PkgFlag.lookaside)
srpm_name = i.sourcerpm.rsplit("-", 2)[0]
if srpm_name in self.opts.fulltree_excludes:
self._set_flag(i, PkgFlag.fulltree_exclude)
if PkgFlag.input in self.result_package_flags.get(srpm_name, set()):
# If src rpm is marked as input, mark debuginfo as input too
self._set_flag(i, PkgFlag.input)
if i not in self.result_debug_packages:
added.add(i)
debug_pkgs.append(i)