aboutsummaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorRafał Mużyło <galtgendo@o2.pl>2023-07-18 23:28:44 +0100
committerSam James <sam@gentoo.org>2023-07-18 23:28:44 +0100
commit637bfbfb27d2104a81d80e5c67a7878d2e874966 (patch)
tree51e0040b93dbf7c5d0ce0b89021685e35da6a0ff /pym
parentequery: depgraph: Fix --linear shortopt (-l) (diff)
downloadgentoolkit-637bfbfb27d2104a81d80e5c67a7878d2e874966.tar.gz
gentoolkit-637bfbfb27d2104a81d80e5c67a7878d2e874966.tar.bz2
gentoolkit-637bfbfb27d2104a81d80e5c67a7878d2e874966.zip
equery: list: correctly handle installed packages no longer in tree
Closes: https://bugs.gentoo.org/369581 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'pym')
-rw-r--r--pym/gentoolkit/equery/list_.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/gentoolkit/equery/list_.py b/pym/gentoolkit/equery/list_.py
index 1e03d91..9b38c3e 100644
--- a/pym/gentoolkit/equery/list_.py
+++ b/pym/gentoolkit/equery/list_.py
@@ -233,10 +233,10 @@ def main(input_args):
)
if QUERY_OPTS["in_porttree"] and not QUERY_OPTS["in_overlay"]:
- if not "P" 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:
+ if not ("O" in pkgstr.location or (QUERY_OPTS['in_installed'] and 'I' in pkgstr.location)):
continue
pp.uprint(pkgstr)