summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-05-09 18:36:19 +0000
committerZac Medico <zmedico@gentoo.org>2008-05-09 18:36:19 +0000
commit1537947c6e62ac845aba2a0fd51e26c36bb8acd4 (patch)
tree546c1bdee36768af078410769fd0fd3a5d1c7302
parent19e5293bab502946224fa74c729848cf82dc17a7 (diff)
downloadportage-1537947c6e62ac845aba2a0fd51e26c36bb8acd4.tar.gz
portage-1537947c6e62ac845aba2a0fd51e26c36bb8acd4.tar.bz2
portage-1537947c6e62ac845aba2a0fd51e26c36bb8acd4.zip
Bug #221107 - Fix depgraph._serialize_tasks() so that it doesn't
try to schedule an uninstall task that's already been scheduled but hasn't been executed yet due to dependence on installation of blocking packages. svn path=/main/trunk/; revision=10271
-rw-r--r--pym/_emerge/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 43af8058b..eede39375 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -3828,6 +3828,12 @@ class depgraph(object):
if task in ignored_uninstall_tasks:
continue
+ if task in scheduled_uninstalls:
+ # It's been scheduled but it hasn't
+ # been executed yet due to dependence
+ # on installation of blocking packages.
+ continue
+
root_config = self.roots[task.root]
inst_pkg = self._pkg_cache[
("installed", task.root, task.cpv, "nomerge")]