Control: tag -1 confirmed

Hi Peter,

Quoting Peter B (2023-09-19 18:34:02)
> Files containing short license names such as GPL-3.0+ are reported
> as GPL-3 instead of GPL-3+
> 
> Example is dist/unix/strawberry.spec.in in package strawberry
> https://salsa.debian.org/debian/strawberry/-/blob/master/dist/unix/strawberry.spec.in
> 
> This is the only example file I have now, but I have tried editing the file to
> use various other short names such as;
> 
> GPL-3+
> GPLv3+
> 
> The results are the same. The + suffix is not recognised as allowing a later
> version of the license. All are reported as GPL-3

Indeed, this is a bug.

Not quite sure, but I guess the problem is that licensecheck strips
surrounding "noise" too aggressively, before scanning for license
shortname - i.e. that the "+" is mistaken as a kind of comment marker or
ASCII art - like this:

++++++++++++++++++
+License: GPL-3.0+
++++++++++++++++++


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/
 * Sponsorship: https://ko-fi.com/drjones

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: signature

Reply via email to