Skip to content

The appstream validator has some complaints about the metainfo XML #71

@musicinmybrain

Description

@musicinmybrain

What Happened?

With harvey 2.0.0, and with appstreamcli from https://github.com/ximion/appstream/releases/tag/v1.0.2 as packaged in Fedora (latest upstream release is 1.0.3), appstreamcli validate --no-net io.github.danirabbit.harvey.metainfo.xml fails due to three warnings.

Steps to Reproduce

appstreamcli validate --no-net --explain io.github.danirabbit.harvey.metainfo.xml

Expected Behavior

Since appstream validate fails (exits with nonzero status) when there are warnings, even without --strict, it would be nice if the metainfo file could validate without warnings.

This is not a serious issue for me in Fedora, because it’s appstream-util validate-relax --nonet that must pass in Fedora (which it does), and I can just ignore appstreamcli validate. However, I suppose there might exist distributions or app stores / software centers that do need appstreamcli validate to succeed.

OS Version

Other Linux

Software Version

Latest release (I have run all updates)

Log output (Optional)

+ appstreamcli validate --no-net --explain /builddir/build/BUILD/harvey-2.0.0-build/BUILDROOT//usr/share/metainfo/io.github.danirabbit.harvey.metainfo.xml
W: io.github.danirabbit.harvey:48: screenshot-no-unscaled-image
   A screenshot must have at least one image that has a scaling factor of 1.

W: io.github.danirabbit.harvey:51: screenshot-invalid-env-style pantheon:dark
   The `environment` property is set to an unrecognized graphical environment/style combination.

W: io.github.danirabbit.harvey:51: screenshot-no-unscaled-image
   A screenshot must have at least one image that has a scaling factor of 1.

✘ Validation failed: warnings: 3, pedantic: 2

Hardware Info (Optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions