resume_depgraph: be careful with parent_node type
authorZac Medico <zmedico@gentoo.org>
Tue, 12 Jul 2011 19:26:47 +0000 (12:26 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 12 Jul 2011 19:26:47 +0000 (12:26 -0700)
pym/_emerge/depgraph.py

index 8219a773845f140cbb56bf0d81b862316948bc2d..a5923ddf6481f0084b5bcc48aace83e9401cb1da 100644 (file)
@@ -6881,8 +6881,9 @@ def _resume_depgraph(settings, trees, mtimedb, myopts, myparams, spinner):
                                                unsatisfied_parents[parent_node] = parent_node
                                                unsatisfied_stack.append(parent_node)
 
-                       unsatisfied_tuples = set(tuple(pkg)
-                               for pkg in unsatisfied_parents)
+                       unsatisfied_tuples = frozenset(tuple(parent_node)
+                               for parent_node in unsatisfied_parents
+                               if isinstance(parent_node, Package))
                        pruned_mergelist = []
                        for x in mergelist:
                                if isinstance(x, list) and \