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
appstreamcli validate fails to identify WITH operator #261
Comments
|
Oh, that's a new change - previously SPDX had this attached as suffix to the license name, like GPL-2.0-with-classpath-exception. |
|
FWIW, appstream-glib only supports the old syntax, e.g. https://github.com/hughsie/appstream-glib/blob/master/libappstream-glib/as-utils.c#L388 -- I'm getting a bit tired of the SPDX "API" breaks. |
We convert many of the new-style licenses into old-style. :/ |
|
AppStream does the exact same as appstream-glib, only the old syntax is supported.
I think both should work in AppStream, they'll just get translated. We will also support a "GPL-3.0+" syntax probably forever, even if the SPDX and apparently FSF discourage that, otherwise we'd break backwards compatibility in a major way. I do agree though that we should deal with this problem, either by properly implementing the new SPDX, or instead just not failing if statements like WITH are encountered. |
|
I've implemented this now, so the next version of AppStream should recognize the operator. |
|
@ximion I built and tested it and it still seems broken to me (with the XML file in this issue's description) |
|
Jup, the validator didn't know about the change yet. Thanks for testing! This should work now, also for validation :-) |
|
Tested and confirmed. Validator no longer complains. Thanks @ximion |
I am trying to validate the following metadata xml file
and
appstreamcli validatereturns an errorThe font is released under OFL-1.1 or GPL-3.0+ font exception.
Version 0.12.9 of
appstreamcliThe text was updated successfully, but these errors were encountered: