Fix broken references to DepPriority attributes. (trunk r12619)
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 05:18:22 +0000 (05:18 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 05:18:22 +0000 (05:18 -0000)
svn path=/main/branches/2.1.6/; revision=12894

pym/_emerge/__init__.py

index b1e38a9183cf21b261177ed1a1ccad34a7c0203f..51a2df8887eebb0555b21f2d05d38136b5177775 100644 (file)
@@ -7434,7 +7434,7 @@ class depgraph(object):
                # have no parents and thus can not be part of a cycle.
                while True:
                        root_nodes = mygraph.root_nodes(
-                               ignore_priority=DepPriority.MEDIUM_SOFT)
+                               ignore_priority=DepPrioritySatisfiedRange.ignore_medium_soft)
                        if not root_nodes:
                                break
                        mygraph.difference_update(root_nodes)
@@ -13636,7 +13636,7 @@ def resume_depgraph(settings, trees, mtimedb, myopts, myparams, spinner):
                                                continue
                                        unsatisfied = \
                                                graph.child_nodes(parent_node,
-                                               ignore_priority=DepPriority.SOFT)
+                                               ignore_priority=DepPrioritySatisfiedRange.ignore_soft)
                                        if pkg in unsatisfied:
                                                unsatisfied_parents[parent_node] = parent_node
                                                unsatisfied_stack.append(parent_node)
@@ -14012,7 +14012,8 @@ def action_build(settings, trees, mtimedb,
                                                node.operation == "nomerge":
                                                removed_nodes.add(node)
                                graph_copy.difference_update(removed_nodes)
-                               if not graph_copy.hasallzeros(ignore_priority=DepPriority.MEDIUM):
+                               if not graph_copy.hasallzeros(ignore_priority = \
+                                       DepPrioritySatisfiedRange.ignore_medium):
                                        print "\n!!! --buildpkgonly requires all dependencies to be merged."
                                        print "!!! You have to merge the dependencies before you can build this package.\n"
                                        return 1
@@ -14025,7 +14026,8 @@ def action_build(settings, trees, mtimedb,
                                        node.operation == "nomerge":
                                        removed_nodes.add(node)
                        graph_copy.difference_update(removed_nodes)
-                       if not graph_copy.hasallzeros(ignore_priority=DepPriority.MEDIUM):
+                       if not graph_copy.hasallzeros(ignore_priority = \
+                               DepPrioritySatisfiedRange.ignore_medium):
                                print "\n!!! --buildpkgonly requires all dependencies to be merged."
                                print "!!! Cannot merge requested packages. Merge deps and try again.\n"
                                return 1