diff options
author | Sam James <sam@gentoo.org> | 2023-08-05 06:38:40 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-08-05 06:38:45 +0100 |
commit | 9fbd05c05f86bb9c67d229ea64fe72c5ea08cf62 (patch) | |
tree | b0636c63ad55c80df0818c8e7b83e08b8f383509 | |
parent | equery: list: correctly handle installed packages no longer in tree (diff) | |
download | gentoolkit-9fbd05c05f86bb9c67d229ea64fe72c5ea08cf62.tar.gz gentoolkit-9fbd05c05f86bb9c67d229ea64fe72c5ea08cf62.tar.bz2 gentoolkit-9fbd05c05f86bb9c67d229ea64fe72c5ea08cf62.zip |
equery: reformat with black
Fixes: 637bfbfb27d2104a81d80e5c67a7878d2e874966
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | pym/gentoolkit/equery/list_.py | 10 |
1 files 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) |