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:
parent
73b8928013
commit
c32bdce46d
@ -28,6 +28,11 @@ import pungi.multilib_dnf
|
|||||||
from pungi.profiler import Profiler
|
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):
|
class GatherOptions(pungi.common.OptionsBase):
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
super(GatherOptions, self).__init__()
|
super(GatherOptions, self).__init__()
|
||||||
@ -590,7 +595,7 @@ class Gather(GatherBase):
|
|||||||
for pkg in sorted(self.result_binary_packages):
|
for pkg in sorted(self.result_binary_packages):
|
||||||
assert pkg is not None
|
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)
|
self.logger.debug('No fulltree for %s due to exclude list', pkg)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user