summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 19dfc23e6..1c8547b7d 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -6645,7 +6645,8 @@ def action_depclean(settings, trees, ldpath_mtimes,
del nodes[1:]
for node in nodes:
graph.remove(node)
- cleanlist.append(node)
+ if node in clean_set:
+ cleanlist.append(node)
unmerge(root_config, myopts,
"unmerge", cleanlist, ldpath_mtimes)