Skip to content

Commit

Permalink
Store license information from Cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-turney committed Jan 2, 2024
1 parent 8553668 commit 434b695
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions repology/parsers/parsers/cygwin.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ def iter_parse(self, path: str, factory: PackageFactory) -> Iterable[PackageMake
pkg.add_links(LinkType.PACKAGE_RECIPE, packagedata['build_recipe'])
pkg.add_links(LinkType.PACKAGE_RECIPE_RAW, packagedata['build_recipe'].replace('/tree/', '/plain/'))

if 'license' in packagedata:
pkg.add_licenses(packagedata['license']) # a SPDX license expression

for maturity in ['stable', 'test']:
if maturity not in packagedata['versions']:
continue
Expand Down

0 comments on commit 434b695

Please sign in to comment.