From b663a030db08fee1da4976436b58a7f1a19a551d Mon Sep 17 00:00:00 2001 From: Paul Barker Date: Sat, 11 Oct 2014 10:23:45 +0000 Subject: [PATCH] WIP: Attempt to fix duplicate removal of dependent packages To: opkg-devel@googlegroups.com Signed-off-by: Paul Barker --- libopkg/opkg_remove.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libopkg/opkg_remove.c b/libopkg/opkg_remove.c index 34f9154..fb8ab52 100644 --- a/libopkg/opkg_remove.c +++ b/libopkg/opkg_remove.c @@ -117,7 +117,8 @@ opkg_remove_dependent_pkgs(pkg_t *pkg, abstract_pkg_t **dependents) if (dep_ab_pkg->state_status == SS_INSTALLED) { for (a = 0; a < dep_ab_pkg->pkgs->len; a++) { pkg_t *dep_pkg = dep_ab_pkg->pkgs->pkgs[a]; - if (dep_pkg->state_status == SS_INSTALLED) { + if (dep_pkg->state_status == SS_INSTALLED + && !pkg_vec_contains(dependent_pkgs, dep_pkg)) { pkg_vec_insert(dependent_pkgs, dep_pkg); count++; } -- 2.1.2