diff options
author | Richard Hughes <richard@hughsie.com> | 2016-01-11 13:40:55 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-01-11 13:43:01 +0000 |
commit | 5aad173e045f2956960798dc910edaaead34a038 (patch) | |
tree | e6c47d592c252961983f36596c6bf74d7cda4102 /libappstream-glib/as-app-validate.c | |
parent | cfd7644c4c67bc60fb931802beac77307ea5821c (diff) | |
download | appstream-glib-5aad173e045f2956960798dc910edaaead34a038.tar.gz |
Set a validation failure for files using <updatecontact> when being strict
Fixes https://github.com/hughsie/appstream-glib/issues/77
Diffstat (limited to 'libappstream-glib/as-app-validate.c')
-rw-r--r-- | libappstream-glib/as-app-validate.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libappstream-glib/as-app-validate.c b/libappstream-glib/as-app-validate.c index 1f87324..bce8f13 100644 --- a/libappstream-glib/as-app-validate.c +++ b/libappstream-glib/as-app-validate.c @@ -1317,6 +1317,12 @@ as_app_validate (AsApp *app, AsAppValidateFlags flags, GError **error) AS_PROBLEM_KIND_VALUE_MISSING, "<!-- Copyright [year] [name] --> is not present"); } + if (deprectated_failure && + (problems & AS_APP_PROBLEM_UPDATECONTACT_FALLBACK) > 0) { + ai_app_validate_add (&helper, + AS_PROBLEM_KIND_TAG_INVALID, + "<updatecontact> should be <update_contact>"); + } } /* check for things that have to exist */ |