Skip to content

Commit

Permalink
Fixed publishing of module repodata.
Browse files Browse the repository at this point in the history
  • Loading branch information
ipanova committed Apr 21, 2020
1 parent 613aede commit 014b254
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/6530.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed publishing of module repodata.
4 changes: 3 additions & 1 deletion pulp_rpm/app/tasks/publishing.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ def publish_artifacts(self, content):
published_artifacts = []
for content_artifact in ContentArtifact.objects.filter(
content__in=content.exclude(
pulp_type=RepoMetadataFile.get_pulp_type()
pulp_type__in=[RepoMetadataFile.get_pulp_type(),
Modulemd.get_pulp_type(),
ModulemdDefaults.get_pulp_type()]
).distinct()
).iterator():
relative_path = content_artifact.relative_path
Expand Down

0 comments on commit 014b254

Please sign in to comment.