#1051840 licensecheck: file parsing: extract metadata from appstream

#1051840#5
Date:
2023-09-13 10:54:15 UTC
From:
To:
Dear Maintainer,

Appstream metadata files have two license fields;
1) <metadata_license>
2) <Project_license>

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

#1051840#10
Date:
2023-09-13 17:38:31 UTC
From:
To:
Hi Peter,

Quoting Peter B (2023-09-13 12:54:15)

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

#1051840#17
Date:
2023-09-13 18:37:29 UTC
From:
To:
Hi Jonas,

Apart from the appstream metadata issue, I'm seeing license shortnames such as

GPL-3.0+
GPLv3+
GPL-3+

in file headers are all shown as GPL-3  instead of GPL-3+

Example
https://salsa.debian.org/debian/strawberry/-/blob/master/dist/unix/strawberry.spec.in


Should I raise this as a separate bug report?



Cheers,
Peter

#1051840#22
Date:
2023-09-13 18:45:08 UTC
From:
To:
Quoting Peter B (2023-09-13 20:37:29)

Yes, that's a separate issue - please report as a separate bugreport,
and please provide more examples (as it is helpful to examine if they
are all failing the same way).

Thanks!

 - Jonas