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 3CD7C15800A for ; Sat, 5 Aug 2023 05:38:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 822D12BC013; Sat, 5 Aug 2023 05:38:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 69BD02BC013 for ; Sat, 5 Aug 2023 05:38:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8E6E5335C31 for ; Sat, 5 Aug 2023 05:38:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2B5EEECF for ; Sat, 5 Aug 2023 05:38:49 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1691213925.9fbd05c05f86bb9c67d229ea64fe72c5ea08cf62.sam@gentoo> Subject: [gentoo-commits] proj/gentoolkit:master commit in: pym/gentoolkit/equery/ X-VCS-Repository: proj/gentoolkit X-VCS-Files: pym/gentoolkit/equery/list_.py X-VCS-Directories: pym/gentoolkit/equery/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 9fbd05c05f86bb9c67d229ea64fe72c5ea08cf62 X-VCS-Branch: master Date: Sat, 5 Aug 2023 05:38:49 +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: e1970cd5-40a4-48b2-bd15-e284287e2efd X-Archives-Hash: 60cec1f73acab7a7579e30732e4af994 commit: 9fbd05c05f86bb9c67d229ea64fe72c5ea08cf62 Author: Sam James gentoo org> AuthorDate: Sat Aug 5 05:38:40 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sat Aug 5 05:38:45 2023 +0000 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=9fbd05c0 equery: reformat with black Fixes: 637bfbfb27d2104a81d80e5c67a7878d2e874966 Signed-off-by: Sam James gentoo.org> pym/gentoolkit/equery/list_.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pym/gentoolkit/equery/list_.py b/pym/gentoolkit/equery/list_.py index 9b38c3e..237e7fe 100644 --- a/pym/gentoolkit/equery/list_.py +++ b/pym/gentoolkit/equery/list_.py @@ -233,10 +233,16 @@ def main(input_args): ) if QUERY_OPTS["in_porttree"] and not QUERY_OPTS["in_overlay"]: - if not ("P" in pkgstr.location or (QUERY_OPTS['in_installed'] and 'I' in pkgstr.location)): + if not ( + "P" in pkgstr.location + or (QUERY_OPTS["in_installed"] and "I" in pkgstr.location) + ): continue if QUERY_OPTS["in_overlay"] and not QUERY_OPTS["in_porttree"]: - if not ("O" in pkgstr.location or (QUERY_OPTS['in_installed'] and 'I' in pkgstr.location)): + if not ( + "O" in pkgstr.location + or (QUERY_OPTS["in_installed"] and "I" in pkgstr.location) + ): continue pp.uprint(pkgstr)