MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / o_source_package_handler

Function o_source_package_handler

src/packagedcode/alpine.py:1055–1061  ·  view source on GitHub ↗

Return a source_packages list of Package URLs

(value, version=None, **kwargs)

Source from the content-addressed store, hash-verified

1053
1054
1055def o_source_package_handler(value, version=None, **kwargs):
1056 """
1057 Return a source_packages list of Package URLs
1058 """
1059 # the version value will be that of the current package
1060 origin = PackageURL(type='alpine', name=value, version=version).to_string()
1061 return {'source_packages': [origin]}
1062
1063
1064def c_git_commit_handler(value, **kwargs):

Callers

nothing calls this directly

Calls 1

to_stringMethod · 0.80

Tested by

no test coverage detected