diff options
author | Richard Hughes <richard@hughsie.com> | 2014-04-23 11:04:01 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-04-23 11:04:01 +0100 |
commit | 5167081e91045d0286a88fdf55e1fb1f971df016 (patch) | |
tree | 039613726bc64c21a71bf7322d5aa84c235db909 | |
parent | c4ed10ee20c65d261228c142399266245e7ee957 (diff) | |
download | appstream-glib-5167081e91045d0286a88fdf55e1fb1f971df016.tar.gz |
Do not try to parse non-application tags as applicatons
This is XML afterall, so just ignore any extra tags included.
-rw-r--r-- | libappstream-glib/as-store.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libappstream-glib/as-store.c b/libappstream-glib/as-store.c index b597083..b5a0caa 100644 --- a/libappstream-glib/as-store.c +++ b/libappstream-glib/as-store.c @@ -384,6 +384,8 @@ as_store_from_root (AsStore *store, NULL); } for (n = apps->children; n != NULL; n = n->next) { + if (as_node_get_tag (n) != AS_TAG_APPLICATION) + continue; app = as_app_new (); if (icon_path != NULL) as_app_set_icon_path (app, icon_path, -1); |