Skip to content

Support passing an updated license database to pyspdxtools #888

@joshtriplett

Description

@joshtriplett

If spdx-tools has an outdated license database, it can fail to recognize a valid license.

Updating the package will fix this, but it would be convenient to be able to update the database independently.

Please consider providing an option to pass in the license database. get_spdx_licensing supports an optional argument to pass in the database path; this would need to get plumbed through LicenseExpressionParser, FileParser, JsonLikeDictParser, its various invocations in parse_from_file methods, parse_file which invokes all of those, and finally the pyspdxtools command line.

I'd be happy to file a PR doing this, if this would be welcome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions