From 989e9d3972939e7b8a3b3720d0bcffb1f559b468 Mon Sep 17 00:00:00 2001 From: pixdamix@gmail.com Date: Wed, 13 Jul 2011 07:53:28 -0400 Subject: Fix issue-79: Opkg can remove a package even if another still depends on it. - The problematic case is described by tests/regress/issue79.py Signed-off-by: Camille Moncelier git-svn-id: http://opkg.googlecode.com/svn/trunk@625 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg') diff --git a/libopkg/opkg_remove.c b/libopkg/opkg_remove.c index c6f2e37..20e7d7d 100644 --- a/libopkg/opkg_remove.c +++ b/libopkg/opkg_remove.c @@ -44,7 +44,7 @@ pkg_has_installed_dependents(pkg_t *pkg, abstract_pkg_t *** pdependents) if (dependers == NULL) continue; while ((dep_ab_pkg = *dependers++) != NULL) { - if (dep_ab_pkg->state_status == SS_INSTALLED){ + if (dep_ab_pkg->state_status == SS_INSTALLED || dep_ab_pkg->state_status == SS_UNPACKED){ n_installed_dependents++; } } -- cgit v0.9.1