Skip to content

Commit

Permalink
Merge pull request pulp#977 from daviddavis/set-serve-from-pub
Browse files Browse the repository at this point in the history
Set SERVE_FROM_PUBLICATION on AptDistribution
  • Loading branch information
quba42 authored Dec 11, 2023
2 parents f486934 + 7ebdae9 commit 47a759a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/976.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed a bug where pulp_deb was serving unpublished content when distributing a repository that has content but no publications.
1 change: 1 addition & 0 deletions pulp_deb/app/models/publication.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class AptDistribution(Distribution):
"""

TYPE = "apt-distribution"
SERVE_FROM_PUBLICATION = True

class Meta:
default_related_name = "%(app_label)s_%(model_name)s"

0 comments on commit 47a759a

Please sign in to comment.