1 While removing a package with opkg, the process shouldn't be blocked if
2 another package RECOMMENDS the package wanted to be removed. This is
3 because, while generating the dependencies, opkg adds dependencies to
4 depended_upon_by even if dependency's type is RECOMMEND. The fix is to
5 skip dependencies of type RECOMMEND while constructing depended_upon_by.
8 https://bugzilla.yoctoproject.org/show_bug.cgi?id=2431
10 Upstream-Status: Pending
11 Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
13 Index: trunk/libopkg/pkg_depends.c
14 ===================================================================
15 --- trunk.orig/libopkg/pkg_depends.c 2011-09-03 05:54:56.000000000 +0300
16 +++ trunk/libopkg/pkg_depends.c 2012-10-20 22:23:03.783573202 +0300
18 for (i = 0; i < count; i++) {
19 depends = &pkg->depends[i];
20 if (depends->type != PREDEPEND
21 - && depends->type != DEPEND
22 - && depends->type != RECOMMEND)
23 + && depends->type != DEPEND)
25 for (j = 0; j < depends->possibility_count; j++) {
26 ab_depend = depends->possibilities[j]->pkg;