pungi: Allow globs in %multilib-whitelist
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
2cd2e0e15f
commit
48bd3e6d2d
@ -705,7 +705,12 @@ class Pungi(PungiBase):
|
||||
if not match:
|
||||
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")
|
||||
self.add_package(match, msg)
|
||||
self.completed_multilib.add(match)
|
||||
|
Loading…
Reference in New Issue
Block a user