SAGA still installs the AppStream metadata in the legacy format:
/usr/share/appdata/saga.appdata.xml
Please update the format for the current specification (0.12):
https://www.freedesktop.org/software/appstream/docs/
And install the metadata in the non-legacy path:
/usr/share/metainfo/org.saga-gis.saga-gui.metainfo.xml
Anonymous
Hi Bas,
thanks for the hint, I will have a look!
Best regards,
Volker
I've just comitted an update, please see
https://sourceforge.net/p/saga-gis/code/ci/42dbd92e0f45a44ae5a55e79da523061691bdab0/
... keeping this open until you confirm everything is as expected, thanks!
The file fails to validate:
The fix is trivial:
The file still fails to valid then:
Regular validation
Relaxed validation
Strict validation
This is with
appstream-util0.7.10 on Debian unstable.For the relaxed validation it's sufficient to add the type attribute:
The caption fix is also trivial:
Fixing the release tag is more involved, because the 6.5.0 release is not out yet, and hence no date is known. Perhaps that section should be left out, as it's not required.
Because saga-gui is not a generic component, but a desktop application, my initial mention of metainfo filename is wrong, it should be:
/usr/share/metainfo/org.saga-gis.saga-gui.appdata.xmlPer: https://www.freedesktop.org/software/appstream/docs/sect-Metadata-Application.html
Hi Bas,
thanks a lot for your help, I've just committed an update, see
https://sourceforge.net/p/saga-gis/code/ci/3fb9cbbd03c15d90f41d8b800a839649c5d36871/
Best regards,
Volker
Thanks for the update, unfortunately it still fails to validate:
I don't understand the attribute-invalid issue,
type="desktop"should be valid for compatibility with older AppStream, but even when changed totype="desktop-application"it fails to validate in the same way.I've started a new package build to see if the issues lintian reported about the legacy appstream file are resolved now.
The lintian issue are resolved now.
The fix for the component is to remove the attribute from the id:
Adding translations would als fix strict validation.
Thanks, I've committed a fix for the id:
https://sourceforge.net/p/saga-gis/code/ci/de7f1d450af2ac5a078466499297a8efb5165104/
I don't understand why translation is required, the spec states that the tag is optional. I could easly add the tag, but would I use as "type"? It seems that currently only "gettext" and "qt" are valid. But SAGA comes with its own translation system. It is also not clear to me with what "foobar" in the example is expected to get exchanged:
Do you have an idea how this is supposed to work? Otherwise I would suggest to keep it out and be ok with the relaxed validation.
Since none of the supported translations are used for Saga those tags can be left out. Relaxed validation passes now, which is good enough for me.
Ok, fine - thanks again for the help!