Fix filters for DNF query

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2024-02-14 14:41:02 +01:00
parent 2c61416423
commit d2e9ccefde

View File

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