Scheduler: remove uninstall task from pkg_queue v2.2.0_alpha16
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:15:51 +0000 (13:15 -0800)
pym/_emerge/Scheduler.py

index 463d0d85e70f2769b8e59657c59615796b710a9d..39e8e6eef35df099b226331975d1d517117b83bc 100644 (file)
@@ -1447,6 +1447,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)