commit:     a9872a3fc8b489e5dd96bcaaa57d02738bf6e077
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 13 14:26:00 2021 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sat Nov 13 14:26:00 2021 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=a9872a3f

libq/dep: fix inversed logic in dep_prune_use

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 libq/dep.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libq/dep.c b/libq/dep.c
index 3667ae5..d431367 100644
--- a/libq/dep.c
+++ b/libq/dep.c
@@ -319,7 +319,8 @@ dep_prune_use(dep_node *root, set *use)
                dep_prune_use(root->neighbor, use);
        if (root->type == DEP_USE) {
                bool invert = (root->info[0] == '!' ? 1 : 0);
-               bool notfound = contains_set(root->info + (invert ? 1 : 0), 
use);
+               bool notfound =
+                       contains_set(root->info + (invert ? 1 : 0), use) == 
NULL;
 
                if (notfound ^ invert) {
                        root->type = DEP_NULL;

Reply via email to