From 6d354e4a2affde35da370fd27256e5039f094a00 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 20 Oct 2014 18:55:47 +0100 Subject: trivial: Don't require a in an AppData file We inherit from .desktop files in most cases. --- libappstream-glib/as-app-validate.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libappstream-glib/as-app-validate.c') diff --git a/libappstream-glib/as-app-validate.c b/libappstream-glib/as-app-validate.c index 8dd2adf..8200865 100644 --- a/libappstream-glib/as-app-validate.c +++ b/libappstream-glib/as-app-validate.c @@ -956,8 +956,14 @@ as_app_validate (AsApp *app, AsAppValidateFlags flags, GError **error) number_para_max = 10; number_para_min = 1; require_sentence_case = FALSE; - if (as_app_get_source_kind (app) == AS_APP_SOURCE_KIND_METAINFO) + switch (as_app_get_source_kind (app)) { + case AS_APP_SOURCE_KIND_METAINFO: + case AS_APP_SOURCE_KIND_APPDATA: require_name = FALSE; + break; + default: + break; + } } /* make the requirements more strict */ -- cgit v1.2.1