Skip to content

Commit

Permalink
parsers/spack: read categories and licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc authored Aug 14, 2024
1 parent 4ba443a commit 36aefc8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions repology/parsers/parsers/spack.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def iter_parse(self, path: str, factory: PackageFactory) -> Iterable[PackageMake
pkg.add_name(pkgdata['name'], NameType.SPACK_NAME)
pkg.add_homepages(pkgdata['homepages'])
pkg.add_maintainers(f'{m}@spack' for m in pkgdata['maintainers'])
pkg.add_categories(pkgdata['categories'])
pkg.add_licenses(pkgdata['licenses'])
pkg.set_extra_field('patch', [patch.split()[0] for patch in pkgdata['patches'] if '://' not in patch])

# - no usable keywords/categories (yet)
Expand Down

0 comments on commit 36aefc8

Please sign in to comment.