From 30517c78579612dc169937abe375aed5bab74a28 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 2 May 2008 21:09:20 +0000 Subject: [PATCH] In depgraph.validate_blockers(), discard any "uninstall" tasks scheduled by previous calls, since those tasks may not make sense given the current graph state. svn path=/main/trunk/; revision=10106 --- pym/_emerge/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index b306f1085..0160f6d02 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -3225,6 +3225,14 @@ class depgraph(object): blocker_cache.flush() del blocker_cache + # Discard any "uninstall" tasks scheduled by previous calls + # to this method, since those tasks may not make sense given + # the current graph state. + previous_uninstall_tasks = self._blocker_uninstalls.leaf_nodes() + if previous_uninstall_tasks: + self._blocker_uninstalls = digraph() + self.digraph.difference_update(previous_uninstall_tasks) + for blocker in self._blocker_parents.leaf_nodes(): self.spinner.update() root_config = self.roots[blocker.root] -- 2.26.2