summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2014-04-23 11:04:01 +0100
committerRichard Hughes <richard@hughsie.com>2014-04-23 11:04:01 +0100
commit5167081e91045d0286a88fdf55e1fb1f971df016 (patch)
tree039613726bc64c21a71bf7322d5aa84c235db909
parentc4ed10ee20c65d261228c142399266245e7ee957 (diff)
downloadappstream-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.c2
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);