import/utils: spdx-string->license: Support '+' operator.
authorPhilip McGrath <philip@philipmcgrath.com>
Wed, 19 Oct 2022 05:04:49 +0000 (01:04 -0400)
committerLudovic Courtès <ludo@gnu.org>
Fri, 18 Nov 2022 14:44:38 +0000 (15:44 +0100)
commitfd5e642513ea08cc9ba3b4197bcbf0b8d37ae966
tree454070472bc81b6a822fa8e93a481d9cfa32fd54
parent07482dc0511350d596fdd25f7645dd6f4f91313b
import/utils: spdx-string->license: Support '+' operator.

Previously, '+' was supported only via special cases for deprecated
GNU identifiers like 'GPL-N+'.  This commit adds support
for other uses of '+', such as 'AFL-2.0+' and 'LPPL-1.0+'.

Strictly speaking, '+' is an operator, not part of the SPDX license
identifier, but it is useful to handle it here.

* guix/import/utils.scm (spdx-string->license): Support '+' operator.
* tests/import-utils.scm ("spdx-string->license"): Test it.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
guix/import/utils.scm
tests/import-utils.scm