Soren Stoutner
2025-01-17 17:10:02 UTC
Reply
PermalinkW: imsprog: appstream-metadata-validation-failed Problems reported by
"appstreamcli validate-tree".
N: The specified AppStream metadata file fail to validate using
'appstreamcli
N: validate-tree --no-net path-to-package-root'.
N: Please refer to https://wiki.debian.org/AppStream/Guidelines for
details.
N: Visibility: warning
N: Show-Always: no
N: Check: appstream-metadata
I have run into this error before. It took me a while to figure out the"appstreamcli validate-tree".
N: The specified AppStream metadata file fail to validate using
'appstreamcli
N: validate-tree --no-net path-to-package-root'.
N: Please refer to https://wiki.debian.org/AppStream/Guidelines for
details.
N: Visibility: warning
N: Show-Always: no
N: Check: appstream-metadata
problem, because the error message didnât point me in the right direction.
So, let me tell you where the bears sleep.
There is an intricate dance between the name of the appstream file, the ID
inside the appstream file, and the name of the desktop file. If they donât line
up in a certain way, you will get this failure. The documentation says there
are supposed to be several ways to line them up, but when I followed some of
the examples I couldnât get the warning to go away. This is what has worked
every time I have tried it.
Appsream file name: Use reverse domain name notation appended by .appdata.xml.
ID: Use the same reverse domain name notation.
Desktop file: Use the same reverse domain name notation appended by .desktop.
For example:
Appstream file name: com.stoutner.privacybrowser.appdata.xml
ID: com.stoutner.privacybrowser
Desktop file: com.stoutner.privacybrowser.desktop
https://salsa.debian.org/soren/privacybrowser/-/blob/master/src/
com.stoutner.privacybrowser.appdata.xml?ref_type=heads
--
Soren Stoutner
***@debian.org
Soren Stoutner
***@debian.org