From 9a31262f06e642d339f2fd7732b23a91aac06696 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Jul 30 2021 18:35:20 +0000 Subject: search exact build NVRs in Koji Use exact build NVR searches in Koji, because these perform better than searching with case-insensitive globs. --- diff --git a/pagure_distgit/plugin.py b/pagure_distgit/plugin.py index 43dd6b6..3c9f37c 100644 --- a/pagure_distgit/plugin.py +++ b/pagure_distgit/plugin.py @@ -597,7 +597,7 @@ def bodhi_updates_endpoint(namespace, repo): if updates.get(release, {}).get("stable"): stable = ( "{0}".format( + "terms={0}&type=build&match=exact'>{0}".format( updates[release].get("stable") ) ) @@ -625,7 +625,7 @@ def bodhi_updates_endpoint(namespace, repo): ) stable = ( "{0}".format( + "terms={0}&type=build&match=exact'>{0}".format( build ) ) @@ -633,7 +633,7 @@ def bodhi_updates_endpoint(namespace, repo): if updates.get(release, {}).get("testing"): testing = ( "{0}".format( + "terms={0}&type=build&match=exact'>{0}".format( updates[release].get("testing") ) )