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

Validation ignores double values in Relations #399

Closed
JakobDev opened this issue May 10, 2022 · 3 comments
Closed

Validation ignores double values in Relations #399

JakobDev opened this issue May 10, 2022 · 3 comments

Comments

@JakobDev
Copy link
Contributor

Considering you have this in the Appstream:

<supports>
    <control>pointing</control>
</supports>
<requires>
    <control>pointing</control>
</requires>

The documentation says to supports:

Installation on systems without the given control may still be permitted, but the software may not be easily usable.

The documentation says to requires:

the software installer should refuse to install the software on devices which do not have at least one of the input methods.

So this above example means, that the installation is pretermitted and not pretermitted, which doesn't make any sense. So this should be invalid. But appstreamcli validate doesn't see a problem. It only prints a warning, that control should not be used in requires.

I think the validation should fail, when a entry (not only controll) appears in more than one relation blocks.

@ximion
Copy link
Owner

ximion commented May 10, 2022

Indeed! There's so many things validate can check for though, that it will always be incomplete.
Patches welcome for this :-)

@JakobDev
Copy link
Contributor Author

I'm not a C programmer and I have almost no experience in it, so unfortunately I can't write the patch.

@ximion ximion changed the title Validation ignores duouble values in Relations Validation ignores double values in Relations May 10, 2022
@ximion
Copy link
Owner

ximion commented May 10, 2022

That's fine, I will get to it eventually :-)

@ximion ximion closed this as completed in c6e5d65 May 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants