Skip to content

Commit

Permalink
Parse binnames from most RPM repos (#1446)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Oct 23, 2024
1 parent 782a385 commit d0755fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions repology/parsers/parsers/repodata.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ def iter_parse(self, path: str, factory: PackageFactory) -> Iterable[PackageMake
'{http://linux.duke.edu/metadata/rpm}license'))
pkg.set_arch(entry.findtext('{http://linux.duke.edu/metadata/common}arch'))

provides = entry.findall('{http://linux.duke.edu/metadata/common}format/'
'{http://linux.duke.edu/metadata/rpm}provides/'
'{http://linux.duke.edu/metadata/rpm}entry')
pkg.add_binnames((elt.attrib['name'] for elt in provides))

packager = entry.findtext('{http://linux.duke.edu/metadata/common}packager')
if packager:
pkg.add_maintainers(extract_maintainers(packager))
Expand Down

0 comments on commit d0755fb

Please sign in to comment.