Work around a bug in DNF

https://bugzilla.redhat.com/show_bug.cgi?id=1418298

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2017-02-01 16:00:43 +01:00
parent 73b8928013
commit c32bdce46d

View File

@ -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