Skip to content

Commit

Permalink
Update default package type for alpine apk packages
Browse files Browse the repository at this point in the history
Reference: #3726
Reference: package-url/purl-spec#171
Reference: package-url/purl-spec#159
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
  • Loading branch information
AyanSinhaMahapatra committed May 8, 2024
1 parent c9b9175 commit 8797c9f
Show file tree
Hide file tree
Showing 121 changed files with 1,113 additions and 1,113 deletions.
6 changes: 3 additions & 3 deletions src/packagedcode/alpine.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class AlpineApkArchiveHandler(models.DatafileHandler):
datasource_id = 'alpine_apk_archive'
path_patterns = ('*.apk',)
filetypes = ('gzip compressed data',)
default_package_type = 'alpine'
default_package_type = 'apk'
description = 'Alpine Linux .apk package archive'
documentation_url = 'https://wiki.alpinelinux.org/wiki/Alpine_package_format'

Expand All @@ -59,7 +59,7 @@ def get_license_detections_and_expression(package):
class AlpineInstalledDatabaseHandler(models.DatafileHandler):
datasource_id = 'alpine_installed_db'
path_patterns = ('*lib/apk/db/installed',)
default_package_type = 'alpine'
default_package_type = 'apk'
description = 'Alpine Linux installed package database'

@classmethod
Expand Down Expand Up @@ -130,7 +130,7 @@ def assemble(cls, package_data, resource, codebase, package_adder):
class AlpineApkbuildHandler(models.DatafileHandler):
datasource_id = 'alpine_apkbuild'
path_patterns = ('*APKBUILD',)
default_package_type = 'alpine'
default_package_type = 'apk'
description = 'Alpine Linux APKBUILD package script'
documentation_url = 'https://wiki.alpinelinux.org/wiki/APKBUILD_Reference'

Expand Down
Loading

0 comments on commit 8797c9f

Please sign in to comment.