Fix filters for DNF query
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
2c61416423
commit
d2e9ccefde
@ -49,8 +49,8 @@ def filter_dotarch(queue, pattern, **kwargs):
|
|||||||
if "." in pattern:
|
if "." in pattern:
|
||||||
name, arch = pattern.split(".", 1)
|
name, arch = pattern.split(".", 1)
|
||||||
if arch in arch_utils.arches or arch == "noarch":
|
if arch in arch_utils.arches or arch == "noarch":
|
||||||
kwargs["name_glob"] = name
|
kwargs["name__glob"] = name
|
||||||
kwargs["arch_eq"] = arch
|
kwargs["arch"] = arch
|
||||||
return queue.filter(**kwargs).apply()
|
return queue.filter(**kwargs).apply()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user