Bug#1051840: licensecheck: Incorrect license reported for appstream metadata

2023-09-13 Thread Jonas Smedegaard
Control: retitle -1 licensecheck: file parsing: extract metadata from appstream

Hi Peter,

Quoting Peter B (2023-09-13 12:54:15)
> Appstream metadata files have two license fields;
> 1) 
> 2) 
> 
> The license for the file itself is the metadata license,
> but licensecheck reports using the project license.
> 
> Example here
> https://salsa.debian.org/debian/strawberry/-/blob/master/dist/unix/org.strawberrymusicplayer.strawberry.appdata.xml
> 
> File license is CC0-1.0, but licensecheck reports GPL.
> 
> 
> Note, also the project license is GPL-3+, not just GPL.

Thanks for reporting this!

Licensecheck does not even report "using the project license": It
recognizes neither of those license fields, as revealed by this command:

  TRACE=1 licensecheck dist/unix/*.appdata.xml

..which hints of a discovery at lines 946-964, which is "released under GPL" at
lines 946-964.

Rephrasing bugreport title accordingly.


 - 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

signature.asc
Description: signature


Bug#1051840: licensecheck: Incorrect license reported for appstream metadata

2023-09-13 Thread Peter B

Package: licensecheck
Version: 3.3.9-1
Severity: minor
X-Debbugs-Cc: pe...@pblackman.plus.com

Dear Maintainer,

Appstream metadata files have two license fields;
1) 
2) 

The license for the file itself is the metadata license,
but licensecheck reports using the project license.

Example here
https://salsa.debian.org/debian/strawberry/-/blob/master/dist/unix/org.strawberrymusicplayer.strawberry.appdata.xml

File license is CC0-1.0, but licensecheck reports GPL.


Note, also the project license is GPL-3+, not just GPL.



Regards,
Peter B