Skip to content

Commit

Permalink
Update fdroid build_packages #74
Browse files Browse the repository at this point in the history
    * Update test expectations

Signed-off-by: Jono Yang <[email protected]>
  • Loading branch information
JonoYang committed May 11, 2023
1 parent dfb7c2b commit ebd5675
Show file tree
Hide file tree
Showing 2 changed files with 4,816 additions and 501 deletions.
5 changes: 2 additions & 3 deletions minecode/mappers/fdroid.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def build_packages(purl, data):

# "license": "GPL-2.0-only",
# this is supposed to be an SPDX expression
declared_license = metadata.get('license')
extracted_license_statement = metadata.get('license')

# "sourceCode": "https://github.com/jdmonin/anstop",
vcs_url = metadata.get('sourceCode')
Expand Down Expand Up @@ -92,12 +92,11 @@ def build_packages(purl, data):

base_purl = PackageURL.from_string(purl)
shared_data = dict(
datasource_id='fdroid-index',
type=base_purl.type,
name=base_purl.name,
keywords=keywords,
bug_tracking_url=bug_tracking_url,
declared_license=declared_license,
extracted_license_statement=extracted_license_statement,
vcs_url=vcs_url,
homepage_url=homepage_url,
repository_homepage_url = f'https://f-droid.org/en/packages/{base_purl.name}',
Expand Down
Loading

0 comments on commit ebd5675

Please sign in to comment.