From 4cb21bc4f2788877b760dc107c93fdbb110eae50 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 6 Jan 2011 16:34:17 -0800 Subject: [PATCH] Scheduler: free unneeded uninstall task from mem --- pym/_emerge/Scheduler.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py index da17eedab..11589ff40 100644 --- a/pym/_emerge/Scheduler.py +++ b/pym/_emerge/Scheduler.py @@ -1408,7 +1408,11 @@ class Scheduler(PollScheduler): if pkg_to_replace is not None: # When a package is replaced, mark it's uninstall # task complete (if any). - self._task_complete(pkg_to_replace) + if self._digraph is not None and \ + pkg_to_replace in self._digraph: + self._task_complete(pkg_to_replace) + else: + self._pkg_cache.pop(pkg_to_replace, None) if pkg.installed: return -- 2.26.2