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

PICARD-2946: metainfo: fix recommended display length definition #2426

Merged
merged 1 commit into from
Apr 24, 2024
Merged

PICARD-2946: metainfo: fix recommended display length definition #2426

merged 1 commit into from
Apr 24, 2024

Conversation

Lctrs
Copy link
Contributor

@Lctrs Lctrs commented Apr 22, 2024

Summary

  • This is a…
    • Bug fix
    • Feature addition
    • Refactoring
    • Minor / simple change (like a typo)
    • Other
  • Describe this change in 1-2 sentences:

Problem

Currently, flathub's build are failing as they don't allow releasing builds with invalid appdata (even if it's just a warning). Running appstreamcli validate do raise this warning: W: org.musicbrainz.Picard:318: relation-display-length-value-invalid medium currently.

According to https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-relations-display_length, display length's value must be an integer value corresponding to logical pixels.

Solution

I took 768px as value because it corresponds to the recommended referenced size for laptops and tablets, which should match imho the previous incorrect medium value.

Action

Additional actions required:

  • Update Picard documentation (please include a reference to this PR)
  • Other (please specify below)

According to https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-relations-display_length, display length's value must be an integer value corresponding to logical pixels.

I took `768`px as value because it corresponds to the recommended referenced size for laptops and tablets, which should match imho the previous incorrect `medium` value.

This fix flathub's build as they don't allow releasing builds with invalid appdata (even if it's just a warning). Running `appstreamcli validate` do raise this warning: `W: org.musicbrainz.Picard:318: relation-display-length-value-invalid medium` currently.
@zas zas requested a review from phw April 23, 2024 07:20
Copy link
Member

@phw phw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot, looks good.

"medium" must have been an allowed value at some time in the past.

@phw phw merged commit ae0b2b2 into metabrainz:master Apr 24, 2024
41 checks passed
@Lctrs Lctrs deleted the patch-1 branch April 24, 2024 08:01
@phw phw changed the title metainfo: fix recommended display length definition PICARD-2946: metainfo: fix recommended display length definition Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants