Fix filters for DNF query

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
(cherry picked from commit d2e9ccefde)
This commit is contained in:
Lubomír Sedlář 2024-02-14 14:41:02 +01:00 committed by Stepan Oksanichenko
parent 305deab9ed
commit 185a53d56b
Signed by: soksanichenko
GPG Key ID: AB9983172AB1E45B

View File

@ -49,8 +49,8 @@ def filter_dotarch(queue, pattern, **kwargs):
if "." in pattern:
name, arch = pattern.split(".", 1)
if arch in arch_utils.arches or arch == "noarch":
kwargs["name_glob"] = name
kwargs["arch_eq"] = arch
kwargs["name__glob"] = name
kwargs["arch"] = arch
return queue.filter(**kwargs).apply()