diff options
author | Richard Hughes <richard@hughsie.com> | 2015-10-05 19:53:11 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2015-10-05 19:53:11 +0100 |
commit | ec646e344fdb9c7c3778b566d14efd28528ef91f (patch) | |
tree | 772da1862ef8bfbe7eb58411f7378858f4b10ac3 | |
parent | 5331fc26935211fd48e13bcf3cf5f8caa3cc0ae6 (diff) | |
parent | a3c4fa9c5f97dffdd747657dfc1e59fa42185b54 (diff) | |
download | appstream-glib-ec646e344fdb9c7c3778b566d14efd28528ef91f.tar.gz |
Merge pull request #67 from ximion/master
dep11: Adapt to spec change
-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) { |