diff --git a/roles/copr/backend/templates/lighttpd/pulp-redirect.lua.j2 b/roles/copr/backend/templates/lighttpd/pulp-redirect.lua.j2 index 970c998b2c..9a02a69496 100644 --- a/roles/copr/backend/templates/lighttpd/pulp-redirect.lua.j2 +++ b/roles/copr/backend/templates/lighttpd/pulp-redirect.lua.j2 @@ -64,7 +64,7 @@ function pulp_url(copr_path) url = url .. "/" end - if copr_path:sub(-4) != ".rpm" then + if copr_path:sub(-4) ~= ".rpm" then -- This is easy for .xml files inside the repodata, because in Pulp they are -- located at the same place where they would be on Copr backend. -- e.g. @copr/copr-dev/fedora-43-x86_64/repodata/repomd.xml