diff options
author | Matthias Klumpp <matthias@tenstral.net> | 2016-08-11 17:59:30 +0200 |
---|---|---|
committer | Matthias Klumpp <matthias@tenstral.net> | 2016-08-11 17:59:30 +0200 |
commit | 2c479053850958575c8de50fbee4433ec05019d3 (patch) | |
tree | e77ec50e8621ef163175cc11e3dd52e46161ca3d /libappstream-glib | |
parent | ea8b160c8f05ae018dcf54181204cc5740c2aa1c (diff) | |
download | appstream-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.c | 6 |
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) { |