From 58f96531c7f7bfd426584b74ce2c5f8d96c51f56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Fri, 22 Sep 2023 10:17:19 +0200 Subject: [PATCH] Correctly set input and fultree_exclude flags for debuginfo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This only matters for composes that use the functionality for trimming addon packages from parent variants. Signed-off-by: Lubomír Sedlář (cherry picked from commit 947ddf0a1a472791b7f67bfc39e6ac3fcaab56ae) --- pungi/gather_dnf.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pungi/gather_dnf.py b/pungi/gather_dnf.py index a7dde038..10764c87 100644 --- a/pungi/gather_dnf.py +++ b/pungi/gather_dnf.py @@ -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)