Permalink
Browse files
yaml: Read all component types, not just desktop-apps
- Loading branch information...
Showing
with
3 additions
and
3 deletions.
-
+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