summaryrefslogtreecommitdiff
path: root/libappstream-glib
diff options
context:
space:
mode:
authorMatthias Klumpp <matthias@tenstral.net>2016-08-11 17:59:30 +0200
committerMatthias Klumpp <matthias@tenstral.net>2016-08-11 17:59:30 +0200
commit2c479053850958575c8de50fbee4433ec05019d3 (patch)
treee77ec50e8621ef163175cc11e3dd52e46161ca3d /libappstream-glib
parentea8b160c8f05ae018dcf54181204cc5740c2aa1c (diff)
downloadappstream-glib-2c479053850958575c8de50fbee4433ec05019d3.tar.gz
yaml: Read all component types, not just desktop-apps
Diffstat (limited to 'libappstream-glib')
-rw-r--r--libappstream-glib/as-app.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c
index 800decf..2151514 100644
--- a/libappstream-glib/as-app.c
+++ b/libappstream-glib/as-app.c
@@ -4801,10 +4801,10 @@ as_app_node_parse_dep11 (AsApp *app, GNode *node,
continue;
}
if (g_strcmp0 (tmp, "Type") == 0) {
- if (g_strcmp0 (as_yaml_node_get_value (n), "desktop-app") == 0) {
- as_app_set_kind (app, AS_APP_KIND_DESKTOP);
+ tmp = as_yaml_node_get_value (n);
+ if (tmp == NULL)
continue;
- }
+ as_app_set_kind (app, as_app_kind_from_string (tmp));
continue;
}
if (g_strcmp0 (tmp, "Package") == 0) {