-
Notifications
You must be signed in to change notification settings - Fork 117
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
license parsing corner case #676
Comments
Note that rpmlint uses |
Not for Fedora, it doesn't. It still uses the traditional RPM shorthand identifiers. |
What do you suggest for the mentioned license ( |
I'm not sure. I think we're probably not handling whitespace in the field properly. |
Oh, you are right, I haven't noticed the split error messages. |
I can confirm the parsing can be improved to the following tokens: |
I have closed #769 as this is the ticket I need to track |
Note that for Fedora you can use BNF grammar that comes in fedora-license-data package in a file |
I think the license regexes needs some adjustment for a corner case. In Fedora, we have a package pending review (sip6) that has this as a license tag:
License: (GPLv2 or GPLv3) and (GPLv2+ with exceptions)
rpmlint returns:
sip6.src: W: invalid-license-exception exceptions)
sip6.src: W: invalid-license (GPLv2+
The text was updated successfully, but these errors were encountered: