summaryrefslogtreecommitdiff
path: root/libappstream-builder/asb-package-alpm.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-01-30 13:04:33 +0000
committerRichard Hughes <richard@hughsie.com>2015-01-30 13:17:04 +0000
commitdcb77b98fb5bf6eb13bf2688fd6a818634a2026a (patch)
tree3e6f4794267b71f3c9b9cc71ee787d88b17eaaad /libappstream-builder/asb-package-alpm.c
parent14db05d4f8b0167a592733e10264a3eb5b1c6165 (diff)
downloadappstream-glib-dcb77b98fb5bf6eb13bf2688fd6a818634a2026a.tar.gz
Add the extra child deps to the main package
This means if X depends on X-libs, and X-libs depends on GTK-3, then X should have the modern toolkit kudo. This means switching around the API a bit so that we can add deps after the AsbPackage has been created.
Diffstat (limited to 'libappstream-builder/asb-package-alpm.c')
-rw-r--r--libappstream-builder/asb-package-alpm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libappstream-builder/asb-package-alpm.c b/libappstream-builder/asb-package-alpm.c
index a8469a7..36e28d0 100644
--- a/libappstream-builder/asb-package-alpm.c
+++ b/libappstream-builder/asb-package-alpm.c
@@ -159,14 +159,13 @@ asb_package_alpm_ensure_depends (AsbPackage *pkg, GError **error)
{
AsbPackageAlpm *pkg_alpm = ASB_PACKAGE_ALPM (pkg);
AsbPackageAlpmPrivate *priv = GET_PRIVATE (pkg_alpm);
-
alpm_list_t *alpm_depends;
- GPtrArray _cleanup_ptrarray_unref_ *depends = NULL;
+ alpm_list_t *current;
alpm_depends = alpm_pkg_get_depends (priv->package);
- depends = asb_package_alpm_list_to_array (alpm_depends);
+ for (current = alpm_depends; current; current = alpm_list_next (current))
+ asb_package_add_dep (pkg, current->data);
- asb_package_set_deps (pkg, (gchar**)(depends->pdata));
return TRUE;
}