aboutsummaryrefslogtreecommitdiffstats
path: root/lib/_emerge/depgraph.py
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-11-06 15:03:10 +0000
committerSam James <sam@gentoo.org>2023-11-06 15:57:56 +0000
commitc56ca69564452198039e17b3a07f24f5b87a6852 (patch)
tree3faf4ea8bddc30aaf7f4b72d237219a0cbf392f5 /lib/_emerge/depgraph.py
parentemerge: account for EROOT in _show_ignored_binaries_respect_use (diff)
downloadgentoo-portage-c56ca69564452198039e17b3a07f24f5b87a6852.tar.xz
gentoo-portage-c56ca69564452198039e17b3a07f24f5b87a6852.zip
emerge: fix _show_ignored_binaries_respect_use with incomplete depgraph
I've gone for the simpler solution of just using an empty tuple where the merge list is empty to preserve prior behaviour with what we do (or do not) display wrt skipped binaries. Bug: https://bugs.gentoo.org/916614 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'lib/_emerge/depgraph.py')
-rw-r--r--lib/_emerge/depgraph.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/_emerge/depgraph.py b/lib/_emerge/depgraph.py
index d1fed0d6520f..e4305c18c96a 100644
--- a/lib/_emerge/depgraph.py
+++ b/lib/_emerge/depgraph.py
@@ -1234,11 +1234,13 @@ class depgraph:
def _show_ignored_binaries_respect_use(self, respect_use):
seen = {}
messages = []
+
merging = {
(pkg.root, pkg.cpv)
- for pkg in self._dynamic_config._displayed_list
+ for pkg in self._dynamic_config._displayed_list or ()
if isinstance(pkg, Package)
}
+
for pkg, flags in respect_use.items():
# Don't include recursive deps which aren't in the merge list anyway.
if (pkg.root, pkg.cpv) not in merging: