Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

as_license_is_free_license() classifies strings like "MIT License" as non-free #359

Closed
weimzh opened this issue Sep 23, 2021 · 2 comments
Closed

Comments

@weimzh
Copy link

weimzh commented Sep 23, 2021

This is used by some of the third-party packages, like the official RPM package of microsoft's powershell, which is MIT licensed.

It might be better to ignore the token "License" itself rather than considering the word "License" itself as non-free.

@ximion
Copy link
Owner

ximion commented Sep 23, 2021

This is not a bug, as long as "MIT License" is the string you are trying to check. The parameter to this function must be a SPDX license ID or expression, so only "MIT" would be considered valid.
See https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-project_license for the specification entry and https://spdx.org/licenses/ for a list of valid license IDs.

@ximion
Copy link
Owner

ximion commented Oct 8, 2021

Quick tip: If you have AppStream >= 0.14.6, you can use the check-license subcommand of appstreamcli to find out what AppStream thinks about a license:
appstreamcli check-license MIT will give you the right result, appstreamcli check-license 'MIT License' will tell you that the license is invalid/unknown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants