summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-app-validate.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2014-10-20 18:55:47 +0100
committerRichard Hughes <richard@hughsie.com>2014-10-20 18:56:11 +0100
commit6d354e4a2affde35da370fd27256e5039f094a00 (patch)
tree6ea654339591181393573ec7f4163855efd61b77 /libappstream-glib/as-app-validate.c
parent093df3e509c6510794bbcb9b555e5d627cd589b0 (diff)
downloadappstream-glib-6d354e4a2affde35da370fd27256e5039f094a00.tar.gz
trivial: Don't require a <name> in an AppData file
We inherit from .desktop files in most cases.
Diffstat (limited to 'libappstream-glib/as-app-validate.c')
-rw-r--r--libappstream-glib/as-app-validate.c8
1 files changed, 7 insertions, 1 deletions
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 */