From 0431ebb4b98b4595648e3aa105b3502fb6e0a91e Mon Sep 17 00:00:00 2001 From: pixdamix@gmail.com Date: Thu, 22 Nov 2012 04:18:27 -0500 Subject: 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 git-svn-id: http://opkg.googlecode.com/svn/trunk@646 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg') 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; -- cgit v0.9.1