Skip to content

Commit

Permalink
Fix filelists and changelogs not being properly parsed
Browse files Browse the repository at this point in the history
backports: #8955
https://pulp.plan.io/issues/8955

fixes #8961

(cherry picked from commit 0e5deb7)
  • Loading branch information
dralley committed Jun 23, 2021
1 parent 76fab28 commit cc74d09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES/8961.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix filelists and changelogs not always being parsed correctly.
(backported from #8955)
4 changes: 2 additions & 2 deletions pulp_rpm/app/metadata_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def process_filelists_package_element(element):
pkgid = element.attrib["pkgid"]

files = []
for element in element.findall("file"):
for element in element.findall("{*}file"):
basename, filename = os.path.split(element.text)
ftype = element.attrib.get("type")

Expand All @@ -114,7 +114,7 @@ def process_other_package_element(element):
pkgid = element.attrib["pkgid"]

changelogs = []
for element in element.findall("changelog"):
for element in element.findall("{*}changelog"):
author = element.attrib["author"]
date = int(element.attrib["date"])
text = element.text
Expand Down

0 comments on commit cc74d09

Please sign in to comment.