From 36aefc8671dcc76fe654e8161cbc645f79ab38e6 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Wed, 14 Aug 2024 10:14:00 -0500 Subject: [PATCH] parsers/spack: read categories and licenses --- repology/parsers/parsers/spack.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repology/parsers/parsers/spack.py b/repology/parsers/parsers/spack.py index a2ad0a9fb..ab359dabe 100644 --- a/repology/parsers/parsers/spack.py +++ b/repology/parsers/parsers/spack.py @@ -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)