From 252e2e1dd5b4ffe70bb1700c3f94da05fc30d2e3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 19 Jul 2011 13:23:35 -0700 Subject: [PATCH] Scheduler: fix _running_tasks for uninstalls --- pym/_emerge/Scheduler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py index 1b3a03421..d13e62266 100644 --- a/pym/_emerge/Scheduler.py +++ b/pym/_emerge/Scheduler.py @@ -1661,10 +1661,10 @@ class Scheduler(PollScheduler): self._pkg_count.curval += 1 task = self._task(pkg) - self._running_tasks[id(task)] = task if pkg.installed: merge = PackageMerge(merge=task) + self._running_tasks[id(merge)] = merge merge.addExitListener(self._merge_exit) self._task_queues.merge.addFront(merge) @@ -1672,6 +1672,7 @@ class Scheduler(PollScheduler): self._jobs += 1 self._previous_job_start_time = time.time() self._status_display.running = self._jobs + self._running_tasks[id(task)] = task task.addExitListener(self._extract_exit) self._task_queues.jobs.add(task) @@ -1679,6 +1680,7 @@ class Scheduler(PollScheduler): self._jobs += 1 self._previous_job_start_time = time.time() self._status_display.running = self._jobs + self._running_tasks[id(task)] = task task.addExitListener(self._build_exit) self._task_queues.jobs.add(task) -- 2.26.2