Permalink
Browse files

yaml: Read all component types, not just desktop-apps

  • Loading branch information...
1 parent ea8b160 commit 2c479053850958575c8de50fbee4433ec05019d3 @ximion ximion committed Aug 11, 2016
Showing with 3 additions and 3 deletions.
  1. +3 −3 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) {

0 comments on commit 2c47905

Please sign in to comment.