Skip to content

Commit

Permalink
Fix source publish bug
Browse files Browse the repository at this point in the history
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:

pulp#1061

[noissue]
  • Loading branch information
daviddavis committed Jul 12, 2024
1 parent b29542e commit ccd05a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulp_deb/app/tasks/publishing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ccd05a1

Please sign in to comment.