#145 search exact build NVRs in Koji
Merged 2 years ago by kevin. Opened 3 years ago by ktdreyer.
ktdreyer/pagure-dist-git koji-search-exact  into  master

file modified
+3 -3
@@ -597,7 +597,7 @@ 

              if updates.get(release, {}).get("stable"):

                  stable = (

                      "<a href='https://koji.fedoraproject.org/koji/search?"

-                     "terms={0}&type=build&match=glob'>{0}</a>".format(

+                     "terms={0}&type=build&match=exact'>{0}</a>".format(

                          updates[release].get("stable")

                      )

                  )
@@ -625,7 +625,7 @@ 

                      )

                      stable = (

                          "<a href='https://koji.fedoraproject.org/koji/search?"

-                         "terms={0}&type=build&match=glob'>{0}</a>".format(

+                         "terms={0}&type=build&match=exact'>{0}</a>".format(

                              build

                          )

                      )
@@ -633,7 +633,7 @@ 

              if updates.get(release, {}).get("testing"):

                  testing = (

                      "<a href='https://koji.fedoraproject.org/koji/search?"

-                     "terms={0}&type=build&match=glob'>{0}</a>".format(

+                     "terms={0}&type=build&match=exact'>{0}</a>".format(

                          updates[release].get("testing")

                      )

                  )

Use exact build NVR searches in Koji, because these perform better than searching with case-insensitive globs.

Thanks for the patch. Looks ok to me.

Pull-Request has been merged by kevin

2 years ago
Metadata