summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-01-27 19:06:51 +0000
committerRichard Hughes <richard@hughsie.com>2016-01-27 19:06:51 +0000
commit3a849a787659e51f1d0ae5caccef3517d44518c3 (patch)
tree22d1ac5d9c8657d410eb95651ef587f505994471 /client
parentb6cd0775bae56e9c090920cd907a4f76a0802216 (diff)
downloadappstream-glib-3a849a787659e51f1d0ae5caccef3517d44518c3.tar.gz
Add a flag for skipping invalid AppStream files
Fixes https://github.com/hughsie/appstream-glib/issues/83
Diffstat (limited to 'client')
-rw-r--r--client/as-util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/as-util.c b/client/as-util.c
index 9f93718..55b7260 100644
--- a/client/as-util.c
+++ b/client/as-util.c
@@ -1246,6 +1246,7 @@ as_util_dump (AsUtilPrivate *priv, gchar **values, GError **error)
store = as_store_new ();
if (g_strcmp0 (values[0], "installed") == 0) {
if (!as_store_load (store,
+ AS_STORE_LOAD_FLAG_IGNORE_INVALID |
AS_STORE_LOAD_FLAG_APPDATA |
AS_STORE_LOAD_FLAG_DESKTOP,
NULL, error)) {
@@ -1253,6 +1254,7 @@ as_util_dump (AsUtilPrivate *priv, gchar **values, GError **error)
}
} else if (g_strcmp0 (values[0], "xdg-app") == 0) {
if (!as_store_load (store,
+ AS_STORE_LOAD_FLAG_IGNORE_INVALID |
AS_STORE_LOAD_FLAG_XDG_APP_USER,
NULL, error)) {
return FALSE;
@@ -1297,6 +1299,7 @@ as_util_search (AsUtilPrivate *priv, gchar **values, GError **error)
/* load system database */
store = as_store_new ();
if (!as_store_load (store,
+ AS_STORE_LOAD_FLAG_IGNORE_INVALID |
AS_STORE_LOAD_FLAG_APP_INFO_SYSTEM |
AS_STORE_LOAD_FLAG_APPDATA |
AS_STORE_LOAD_FLAG_XDG_APP_USER |