Bug #221107 - Fix depgraph._serialize_tasks() so that it doesn't
authorZac Medico <zmedico@gentoo.org>
Fri, 9 May 2008 18:36:19 +0000 (18:36 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 9 May 2008 18:36:19 +0000 (18:36 -0000)
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

pym/_emerge/__init__.py

index 43af8058b94916385f0ed807e0c0c87d9a27e7a9..eede393757d9741333a4e5e6fc4eceb97074aa33 100644 (file)
@@ -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")]