Skip to content

Commit

Permalink
Add support for AUR co-maintainers (fixes #1462, #1463)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Jan 9, 2025
1 parent edcf76c commit 2052a22
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions repology/parsers/parsers/aur.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ def iter_parse(self, path: str, factory: PackageFactory) -> Iterable[PackageMake
pkg.add_homepages(pkgdata['URL'])
pkg.add_licenses(pkgdata.get('License'))

if 'Maintainer' in pkgdata and pkgdata['Maintainer']:
pkg.add_maintainers(extract_maintainers(pkgdata['Maintainer'] + '@' + self._maintainer_host))
if maintainer := pkgdata.get('Maintainer'):
pkg.add_maintainers(extract_maintainers(f'{maintainer}@{self._maintainer_host}'))

if comaintainers := pkgdata.get('CoMaintainers'):
pkg.add_maintainers(extract_maintainers(f'{maintainer}@{self._maintainer_host}') for maintainer in comaintainers)

if 'PackageBase' in pkgdata and pkgdata['PackageBase']:
pkg.add_name(pkgdata['PackageBase'], NameType.ARCH_BASENAME)
Expand Down

0 comments on commit 2052a22

Please sign in to comment.