On 05/11/2024 22:24, Petter Reinholdtsen wrote:
Peter, do you have an example package I could look at to see the false
positives you are talking about? The example fragments mentioned
earlier are confusing, as the lintian check should only run if a file is
discovered in /usr/share/metainfo/, and the message "I: ~:~:
dir-no-metadata-found" indicate that no metainfo XML file was present in
the directory.
Hi Petter,
In my tests so far, appstreamcli validate-tree always reports
'dir-no-metadata-found'
when run against a directory with valid metadata. However, the exit code
is zero (no error).
Just as a test and to check, I fetched the source for a random package
listed on
<URL:
https://udd.debian.org/lintian-tag/appstream-metadata-validation-failed?affected=yes
>,
catfish, and its lintian detected Appstream error was present (W:
org.xfce.Catfish:~: metainfo-filename-cid-mismatch). If there is a
false positive somewhere, I am happy to investigate.
Many reports in
https://udd.debian.org/lintian-tag/appstream-metadata-validation-failed?affected=yes
checking a few installed on my system
atril
audacity
mp3guessenc
tkinfo
c-evo-dh (overriden)
cevomapgen (overriden)
have no obvious Appstream issues.
On doing my own random checks, I'm finding several on the above
(affected=yes) list do indeed have some Appstream
issues, but would seriously question whether they merit a lintain tag at
Warning severity.
IMHO Info, or even Pedantic would be more appropriate.
Regards,
Peter