summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-01-24 12:03:52 +0000
committerRichard Hughes <richard@hughsie.com>2016-01-24 12:03:52 +0000
commite14ccd79a26427da1e091452874407fa001e95b9 (patch)
tree9bb137de81135746400c38565d7082ed22f3091a
parentf3306629a1863dae3a03716f277952b8c65cfa9d (diff)
downloadappstream-glib-e14ccd79a26427da1e091452874407fa001e95b9.tar.gz
Use heuristics when building metadata with an AppData file
-rw-r--r--client/as-compose.c2
-rw-r--r--libappstream-builder/plugins/asb-plugin-appdata.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/client/as-compose.c b/client/as-compose.c
index 579661c..8b252f0 100644
--- a/client/as-compose.c
+++ b/client/as-compose.c
@@ -261,7 +261,7 @@ load_appdata (const gchar *prefix, const gchar *app_name, GError **error)
app = as_app_new ();
if (!as_app_parse_file (app, appdata_path,
- AS_APP_PARSE_FLAG_NONE,
+ AS_APP_PARSE_FLAG_USE_HEURISTICS,
error))
return NULL;
if (as_app_get_id_kind (app) == AS_ID_KIND_UNKNOWN) {
diff --git a/libappstream-builder/plugins/asb-plugin-appdata.c b/libappstream-builder/plugins/asb-plugin-appdata.c
index ca7c07e..93cff82 100644
--- a/libappstream-builder/plugins/asb-plugin-appdata.c
+++ b/libappstream-builder/plugins/asb-plugin-appdata.c
@@ -85,7 +85,7 @@ asb_plugin_process_filename (AsbPlugin *plugin,
app = asb_app_new (NULL, NULL);
if (!as_app_parse_file (AS_APP (app), filename,
- AS_APP_PARSE_FLAG_NONE,
+ AS_APP_PARSE_FLAG_USE_HEURISTICS,
error))
return FALSE;
if (as_app_get_id_kind (AS_APP (app)) == AS_ID_KIND_UNKNOWN) {