summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpixdamix@gmail.com <pixdamix@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2012-11-22 04:18:27 (EST)
committer pixdamix@gmail.com <pixdamix@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2012-11-22 04:18:27 (EST)
commit0431ebb4b98b4595648e3aa105b3502fb6e0a91e (patch)
tree9238904b76b9dcde717576ac81b96feb17b53d67
parent43f9ca5893edc94b3eb1314a7d56a397a7ab74f7 (diff)
Fix: RRECOMMENDS and RDEPENDS being basically the same
While removing a package with opkg, the process shouldn't be blocked if another package RECOMMENDS the package wanted to be removed. This is because, while generating the dependencies, opkg adds dependencies to depended_upon_by even if dependency's type is RECOMMEND. The fix is to skip dependencies of type RECOMMEND while constructing depended_upon_by. Bug info: https://bugzilla.yoctoproject.org/show_bug.cgi?id=2431 Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> git-svn-id: http://opkg.googlecode.com/svn/trunk@646 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r--libopkg/pkg_depends.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libopkg/pkg_depends.c b/libopkg/pkg_depends.c
index 27ce7bb..a4df7de 100644
--- a/libopkg/pkg_depends.c
+++ b/libopkg/pkg_depends.c
@@ -906,8 +906,7 @@ void buildDependedUponBy(pkg_t * pkg, abstract_pkg_t * ab_pkg)
for (i = 0; i < count; i++) {
depends = &pkg->depends[i];
if (depends->type != PREDEPEND
- && depends->type != DEPEND
- && depends->type != RECOMMEND)
+ && depends->type != DEPEND)
continue;
for (j = 0; j < depends->possibility_count; j++) {
ab_depend = depends->possibilities[j]->pkg;