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

svn path=/main/branches/2.1.2/; revision=10272

bin/emerge

index 1cf8dd84e018e11cfdb521c9b19df58871218582..7ff6add08e7f221425064f0cdeaafdc44534a54a 100755 (executable)
@@ -3980,6 +3980,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")]