Scheduler: remove uninstall task from pkg_queue v2.1.9.32
authorZac Medico <zmedico@gentoo.org>
Mon, 17 Jan 2011 21:15:51 +0000 (13:15 -0800)
committerZac Medico <zmedico@gentoo.org>
Mon, 17 Jan 2011 21:18:15 +0000 (13:18 -0800)
pym/_emerge/Scheduler.py

index 7f38dedc4e198ac551de30c85257d2d0204e99ea..4ff8893965bf5b98bea990efa4529bee6cfefce0 100644 (file)
@@ -1445,6 +1445,10 @@ class Scheduler(PollScheduler):
                        # task complete (if any).
                        if self._digraph is not None and \
                                pkg_to_replace in self._digraph:
+                               try:
+                                       self._pkg_queue.remove(pkg_to_replace)
+                               except ValueError:
+                                       pass
                                self._task_complete(pkg_to_replace)
                        else:
                                self._pkg_cache.pop(pkg_to_replace, None)