pungi: Allow globs in %multilib-whitelist

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Daniel Mach 2016-10-17 12:29:26 +02:00 committed by Lubomír Sedlář
parent 2cd2e0e15f
commit 48bd3e6d2d

View File

@ -705,7 +705,12 @@ class Pungi(PungiBase):
if not match: if not match:
continue continue
if po.name in self.ksparser.handler.multilib_whitelist: found = False
for pattern in self.ksparser.handler.multilib_whitelist:
if fnmatch(po.name, pattern):
found = True
break
if found:
msg = "Added multilib package %s.%s (repo: %s) for package %s.%s (method: %s)" % (match.name, match.arch, match.repoid, po.name, po.arch, "multilib-whitelist") msg = "Added multilib package %s.%s (repo: %s) for package %s.%s (method: %s)" % (match.name, match.arch, match.repoid, po.name, po.arch, "multilib-whitelist")
self.add_package(match, msg) self.add_package(match, msg)
self.completed_multilib.add(match) self.completed_multilib.add(match)