From c32bdce46d2021dcf88afbb1fb5aa075fec403c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Wed, 1 Feb 2017 16:00:43 +0100 Subject: [PATCH] Work around a bug in DNF MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://bugzilla.redhat.com/show_bug.cgi?id=1418298 Signed-off-by: Lubomír Sedlář --- pungi/gather_dnf.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pungi/gather_dnf.py b/pungi/gather_dnf.py index 0178c431..53aa7a66 100644 --- a/pungi/gather_dnf.py +++ b/pungi/gather_dnf.py @@ -28,6 +28,11 @@ import pungi.multilib_dnf from pungi.profiler import Profiler +def get_source_name(pkg): + # Workaround for rhbz#1418298 + return pkg.sourcerpm.rsplit('-', 2)[0] + + class GatherOptions(pungi.common.OptionsBase): def __init__(self, **kwargs): super(GatherOptions, self).__init__() @@ -590,7 +595,7 @@ class Gather(GatherBase): for pkg in sorted(self.result_binary_packages): assert pkg is not None - if pkg.source_name in self.opts.fulltree_excludes: + if get_source_name(pkg) in self.opts.fulltree_excludes: self.logger.debug('No fulltree for %s due to exclude list', pkg) continue