Correct usage of "appstreamcli validate-tree"
Michal Vašut
michal.vasut at gmail.com
Tue Feb 25 18:38:51 UTC 2025
Hello, I have file structure like this
tree data/org.file.krita/
data/org.file.krita/
├── file-krita.py
└── org.file.krita.metainfo.xml
-----
when I do
appstreamcli validate data/org.file.krita/org.file.krita.metainfo.xml
it detects file and correctly returns
I: org.file.krita:26: nonstandard-gnome-extension metadata
✔ Validation was successful: infos: 1
-----
but when I do
appstreamcli validate-tree data/org.file.krita
or
appstreamcli validate-tree data
(even if I add slash (/) at the end), it always returns
I: ~:~: dir-no-metadata-found
What am I doing wrong?
Thanks. Michal
PS: the metafile content (just testing, not real data) is
<?xml version="1.0" encoding="UTF-8"?>
<component type="addon">
<id>org.file.krita</id>
<extends>org.gimp.GIMP</extends>
<name>Krita File Loader</name>
<summary>Load .kra project files (Preview)</summary>
<description>
<p>
This extension loads the preview image from a .kra project file.
This allows you to import and edit a merged image from Krita.
Future versions of this extension will import more features.
</p>
</description>
<url type="homepage">https://gimp.org</url>
<developer id="io.github.random-guy">
<name>Random Guy</name>
</developer>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0+</project_license>
<releases>
<release version="1.0.0" date="2022-10-05" />
</releases>
<requires>
<id version="2.99.0" compare="ge">org.gimp.GIMP</id>
</requires>
<metadata>
<value key="GIMP::plug-in-path">file-krita.py</value>
</metadata>
<screenshots>
<screenshot type="default">
<caption>The FooBar main window.</caption>
<image type="source" width="1600"
height="900">https://www.gimp.org/images/frontpage/wilber-big.png</image>
</screenshot>
</screenshots>
</component>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/appstream/attachments/20250225/64445ea2/attachment.htm>
More information about the AppStream
mailing list