Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
violethaze74
appstream
Commits
8703a4e6
Commit
8703a4e6
authored
Jan 10, 2020
by
Matthias Klumpp
Browse files
validator: Accept the name_variant_suffix tag
parent
814d1bc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/as-validator.c
View file @
8703a4e6
...
...
@@ -1478,6 +1478,8 @@ as_validator_validate_component_node (AsValidator *validator, AsContext *ctx, xm
as_validator_check_requires_recommends
(
validator
,
iter
,
cpt
,
AS_RELATION_KIND_RECOMMENDS
);
}
else
if
(
g_strcmp0
(
node_name
,
"agreement"
)
==
0
)
{
as_validator_check_children_quick
(
validator
,
iter
,
"agreement_section"
,
FALSE
);
}
else
if
(
g_strcmp0
(
node_name
,
"name_variant_suffix"
)
==
0
)
{
as_validator_check_appear_once
(
validator
,
iter
,
found_tags
);
}
else
if
(
g_strcmp0
(
node_name
,
"custom"
)
==
0
)
{
as_validator_check_appear_once
(
validator
,
iter
,
found_tags
);
as_validator_check_children_quick
(
validator
,
iter
,
"value"
,
FALSE
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment