Skip to content

Commit ea64c13

Browse files
wdconincAMDmi3
authored andcommitted
parsers/spack: read categories and licenses
1 parent 4ba443a commit ea64c13

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

repology/parsers/parsers/spack.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ def iter_parse(self, path: str, factory: PackageFactory) -> Iterable[PackageMake
3535
pkg.add_name(pkgdata['name'], NameType.SPACK_NAME)
3636
pkg.add_homepages(pkgdata['homepages'])
3737
pkg.add_maintainers(f'{m}@spack' for m in pkgdata['maintainers'])
38+
pkg.add_categories(pkgdata['categories'])
39+
pkg.add_licenses(pkgdata['licenses'])
3840
pkg.set_extra_field('patch', [patch.split()[0] for patch in pkgdata['patches'] if '://' not in patch])
3941

4042
# - no usable keywords/categories (yet)

0 commit comments

Comments
 (0)