diff --git a/CHANGES/+integrity-db-query.bugfix b/CHANGES/+integrity-db-query.bugfix new file mode 100644 index 00000000..18cf8227 --- /dev/null +++ b/CHANGES/+integrity-db-query.bugfix @@ -0,0 +1 @@ +Fixed the Integrity API evaluating the entire repository's content query before filtering. diff --git a/pulp_python/app/pypi/views.py b/pulp_python/app/pypi/views.py index a9ed6a6c..8d580a2f 100644 --- a/pulp_python/app/pypi/views.py +++ b/pulp_python/app/pypi/views.py @@ -621,7 +621,7 @@ class ProvenanceView(PyPIMixin, ViewSet): def retrieve(self, request, path, package, version, filename): """Gets the provenance for a package.""" repo_ver, content = self.get_rvc() - if content: + if content is not None: package_content = content.filter( name_normalized=package, version=version, filename=filename ).first()