diff options
author | Matthias Klumpp <matthias@tenstral.net> | 2015-10-05 19:32:49 +0200 |
---|---|---|
committer | Matthias Klumpp <matthias@tenstral.net> | 2015-10-05 19:32:49 +0200 |
commit | a3c4fa9c5f97dffdd747657dfc1e59fa42185b54 (patch) | |
tree | 772da1862ef8bfbe7eb58411f7378858f4b10ac3 /libappstream-glib | |
parent | 5331fc26935211fd48e13bcf3cf5f8caa3cc0ae6 (diff) | |
download | appstream-glib-a3c4fa9c5f97dffdd747657dfc1e59fa42185b54.tar.gz |
dep11: Adapt to spec change
Diffstat (limited to 'libappstream-glib')
-rw-r--r-- | libappstream-glib/as-app.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c index 4e7266c..765fcc1 100644 --- a/libappstream-glib/as-app.c +++ b/libappstream-glib/as-app.c @@ -3777,9 +3777,8 @@ as_app_node_parse_dep11 (AsApp *app, GNode *node, } continue; } - if (g_strcmp0 (tmp, "Packages") == 0) { - for (c = n->children; c != NULL; c = c->next) - as_app_add_pkgname (app, as_yaml_node_get_key (c)); + if (g_strcmp0 (tmp, "Package") == 0) { + as_app_add_pkgname (app, as_yaml_node_get_value (n)); continue; } if (g_strcmp0 (tmp, "Name") == 0) { |