Skip to content

Commit

Permalink
Fix publication of a distribution tree for productmd 1.33+
Browse files Browse the repository at this point in the history
  • Loading branch information
goosemania authored and dralley committed May 24, 2021
1 parent c382c96 commit 686dc93
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES/8807.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed publication of a distribution tree if productmd 1.33+ is installed.
4 changes: 2 additions & 2 deletions pulp_rpm/app/kickstart/treeinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ def deserialize(self, parser):

self.original_parser = parser

def serialize(self, parser):
def serialize(self, parser, main_variant=None):
"""
Handle errors on serialize TreeInfo.
"""
try:
super().serialize(parser)
super().serialize(parser, main_variant=main_variant)
except Exception:
sections = set(self.original_parser._sections.keys()) - set(parser._sections.keys())
self.validate()
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ createrepo_c~=0.17.0
django_readonly_field
jsonschema>=3.0
libcomps~=0.1.15
productmd>=1.25
productmd~=1.33.0
pulpcore>=3.13.0.dev
PyGObject~=3.22
solv~=0.7.17
Expand Down

0 comments on commit 686dc93

Please sign in to comment.