diff options
author | pixdamix@gmail.com <pixdamix@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2011-07-13 07:53:28 (EDT) |
---|---|---|
committer | pixdamix@gmail.com <pixdamix@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2011-07-13 07:53:28 (EDT) |
commit | 989e9d3972939e7b8a3b3720d0bcffb1f559b468 (patch) | |
tree | ef317d62eb2c4f7eefe27805ba31540029ab6017 /libopkg | |
parent | 3d697f6303f381a507f37f8d63129151d745dc6c (diff) |
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 <moncelier@devlife.org>
git-svn-id: http://opkg.googlecode.com/svn/trunk@625 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg')
-rw-r--r-- | libopkg/opkg_remove.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++; } } |