Call depgraph._add_dep() to add package dependencies to the graph
authorZac Medico <zmedico@gentoo.org>
Mon, 14 Apr 2008 01:12:03 +0000 (01:12 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 14 Apr 2008 01:12:03 +0000 (01:12 -0000)
as soon as possible rather than pushing them onto the stack.

svn path=/main/trunk/; revision=9885

pym/_emerge/__init__.py

index 633a7764a9e43ee92a8ac6f1d98cc9103c9ad986..54d26301096b572f780f1fbb918d81ee375b0576 100644 (file)
@@ -2071,10 +2071,9 @@ class depgraph(object):
                                        mypriority = dep_priority.copy()
                                        if not blocker and vardb.match(atom):
                                                mypriority.satisfied = True
-                                       self._dep_stack.append(
-                                               Dependency(atom=atom,
-                                                       blocker=blocker, depth=depth, parent=pkg,
-                                                       priority=mypriority, root=dep_root))
+                                       self._add_dep(Dependency(atom=atom,
+                                               blocker=blocker, depth=depth, parent=pkg,
+                                               priority=mypriority, root=dep_root))
                                if debug:
                                        print "Exiting...", jbigkey
                except ValueError, e: