Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] More instruction for testing metainfo.xml #3

Open
davidjharder opened this issue Feb 2, 2024 · 0 comments
Open

[RFC] More instruction for testing metainfo.xml #3

davidjharder opened this issue Feb 2, 2024 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@davidjharder
Copy link
Member

In the case where packagers need to create or borrow metainfo.xml, and they want to validate it, we could provide better instructions.

Picking on getsolus/packages#1491 as an example:

I validate like so

appstream-util validate files/org.geonkick.geonkick.metainfo.xml
files/org.geonkick.geonkick.metainfo.xml: FAILED:
• tag-missing           : <content_rating> required [use https://odrs.gnome.org/oars]
• style-invalid         : <image> has vertical padding [https://geonkick.org/screenshot.png]
• style-invalid         : <image> has horizontal padding [https://geonkick.org/screenshot.png]
• tag-missing           : <release> required
• tag-missing           : <url> is not present
Validation of files failed

And validation has failed, but I think that check is too strict.

There is also:

appstreamcli validate files/org.geonkick.geonkick.metainfo.xml --pedantic
P: org.geonkick.geonkick:19: screenshot-no-caption
P: org.geonkick.geonkick:~: releases-info-missing
I: org.geonkick.geonkick:~: content-rating-missing

✔ Validation was successful: infos: 1, pedantic: 2

I think we can accept mateinfo.xml that passes the second check, correct?

@ermo ermo added the documentation Improvements or additions to documentation label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: Needs More Info
Status: Todo
Development

No branches or pull requests

3 participants