Skip to content

Commit

Permalink
add changelog to nix
Browse files Browse the repository at this point in the history
  • Loading branch information
jopejoe1 authored and AMDmi3 committed Apr 8, 2024
1 parent 46cc631 commit f4d167e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions repology/parsers/parsers/nix.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from typing import Any, Iterable

from repology.logger import Logger
from repology.package import PackageFlags
from repology.package import PackageFlags, LinkType
from repology.packagemaker import NameType, PackageFactory, PackageMaker
from repology.parsers import Parser
from repology.parsers.json import iter_json_dict
Expand Down Expand Up @@ -177,7 +177,10 @@ def iter_parse(self, path: str, factory: PackageFactory) -> Iterable[PackageMake
if re.match('[0-9a-f]*[a-f][0-9a-f]*$', pkg.version) and len(pkg.version) >= 7:
pkg.set_flags(PackageFlags.IGNORE)

pkg.add_homepages(meta.get('homepage'))
pkg.add_links(LinkType.UPSTREAM_HOMEPAGE, meta.get('homepage'))

if 'changelog' in meta:
pkg.add_links(LinkType.UPSTREAM_CHANGELOG, meta.get('changelog'))

if 'description' in meta:
pkg.set_summary(meta['description'].replace('\n', ' '))
Expand Down

0 comments on commit f4d167e

Please sign in to comment.