Dne 15. 11. 22 v 10:44 Daniel P. Berrangé napsal(a):
In that case, IMHO, the tool should NOT suggest a license from the
list at all, and definitely not arbitrarily suggest the last one it
loaded, which is highly likely to be wrong. If it wants to suggest,
then suggest the most likely option out of the variants.  Or can it
suggest an intentionally invalid placeholder eg "{MIT choice}" to
make it explicit that the maintainer has to actively make a choice.

$ license-fedora2spdx  "(GPLv2 or MIT or BSD)"
Warning: more options how to interpret MIT. Possible options: ['Adobe-Glyph', 
'BSL-1.0', 'BSL-1.0', 'HPND', 'HPND', 'ICU', 'MIT-CMU', 'MIT-Modern-Variant', 
'MIT-enna', 'MIT-feh', 'MIT-open-group', 'MIT', 'NTP', 'SGI-B-2.0', 'SMLNJ', 
'SMLNJ', 'libtiff', 'libtiff', 'mpich2']
Warning: more options how to interpret BSD. Possible options: 
['BSD-2-Clause-FreeBSD', 'BSD-2-Clause-Views', 'BSD-2-Clause', 'BSD-3-Clause', 
'BSD-3-Clause', 'BSD-3-Clause', 'BSD-3-Clause']
( GPL-2.0-only OR {{pick MIT choice}} OR {{pick BSD choice}} )

Your wish has been granted. Implemented, built and I just submitted it to bodhi 
as license-validate-14-1

Miroslav
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to