From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 01986158087 for ; Sat, 13 Nov 2021 14:27:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 624612BC06D; Sat, 13 Nov 2021 14:27:05 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B0CCE2BC03C for ; Sat, 13 Nov 2021 14:27:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 09E0C3433B7 for ; Sat, 13 Nov 2021 14:27:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 40F4B1BD for ; Sat, 13 Nov 2021 14:27:01 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1636813560.a9872a3fc8b489e5dd96bcaaa57d02738bf6e077.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: libq/ X-VCS-Repository: proj/portage-utils X-VCS-Files: libq/dep.c X-VCS-Directories: libq/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: a9872a3fc8b489e5dd96bcaaa57d02738bf6e077 X-VCS-Branch: master Date: Sat, 13 Nov 2021 14:27:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: dc147d83-31a1-442f-b950-a9cb8a54d275 X-Archives-Hash: 0dc5765f0063a822630cbee159eff2d5 commit: a9872a3fc8b489e5dd96bcaaa57d02738bf6e077 Author: Fabian Groffen gentoo org> AuthorDate: Sat Nov 13 14:26:00 2021 +0000 Commit: Fabian Groffen gentoo 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 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;