From f412505aa8ce05ee8321fa6d4794b11158229b2d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 17 Jan 2011 13:15:51 -0800 Subject: [PATCH] Scheduler: remove uninstall task from pkg_queue --- pym/_emerge/Scheduler.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py index 7f38dedc4..4ff889396 100644 --- a/pym/_emerge/Scheduler.py +++ b/pym/_emerge/Scheduler.py @@ -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) -- 2.26.2