From ccd05a1a812ab3d1ad2d5da3fde6742b3272c7b4 Mon Sep 17 00:00:00 2001 From: David Davis Date: Fri, 12 Jul 2024 09:52:23 -0400 Subject: [PATCH] Fix source publish bug Fix a source publishing bug where the code was looping through all release components instead of just the release components for the distribution when attempting to publish source files for a specific distribution component. This raised a key error that was found in @acheng-01's PR which added a test for source publishing: https://github.com/pulp/pulp_deb/pull/1061 [noissue] --- pulp_deb/app/tasks/publishing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pulp_deb/app/tasks/publishing.py b/pulp_deb/app/tasks/publishing.py index 883a0706..7c3d301f 100644 --- a/pulp_deb/app/tasks/publishing.py +++ b/pulp_deb/app/tasks/publishing.py @@ -250,7 +250,7 @@ def publish( source_package_release_components = ( SourcePackageReleaseComponent.objects.filter( pk__in=repo_version.content.order_by("-pulp_created"), - release_component__in=release_components, + release_component__in=release_components_filtered, ).select_related("release_component", "source_package") ) for drc in source_package_release_components: