https://bugzilla.redhat.com/show_bug.cgi?id=2299712



--- Comment #13 from Miro HronĨok <[email protected]> ---
I've used https://pypi.org/project/license-expression/ to validate that:

expressions = [l.removeprefix('# ') for l in comment.splitlines()]
combined = ' AND '.join([f'({l})' for l in expressions])
from_comment = licensing.parse(combined)

from_license = licensing.parse(license_tag)

licensing.is_equivalent(from_license, from_comment)

---

I believe I can turn this into something to use in %check, but that is beyond
the scope of this package review.


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2299712

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202299712%23c13

-- 
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to