Skip to content

Commit

Permalink
Handle duplicates for Summary and Config files
Browse files Browse the repository at this point in the history
closes #257
  • Loading branch information
lubosmj committed May 28, 2023
1 parent 909cd2f commit c3c11b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/257.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed a bug that disallowed users to pull re-synced content locally.
2 changes: 2 additions & 0 deletions pulp_ostree/app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class OstreeConfig(Content):
"""A content model for an OSTree repository configuration file."""

TYPE = "config"
repo_key_fields = ("relative_path",)

sha256 = models.CharField(max_length=64, db_index=True)
relative_path = models.TextField(null=False)
Expand All @@ -112,6 +113,7 @@ class OstreeSummary(Content):
"""A content model for an OSTree summary file."""

TYPE = "summary"
repo_key_fields = ("relative_path",)

sha256 = models.CharField(max_length=64, db_index=True)
relative_path = models.TextField(null=False)
Expand Down

0 comments on commit c3c11b7

Please sign in to comment.