summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-04-14 01:12:03 +0000
committerZac Medico <zmedico@gentoo.org>2008-04-14 01:12:03 +0000
commit4a50e9a2babf0a64cef1eed78d0f0a40cf977172 (patch)
tree93db3c9c2c5a6fa3384be95a363de431da6148b4
parent5f5a38c79043fc45fad83b76c2ad2ebbeebea719 (diff)
downloadportage-4a50e9a2babf0a64cef1eed78d0f0a40cf977172.tar.gz
portage-4a50e9a2babf0a64cef1eed78d0f0a40cf977172.tar.bz2
portage-4a50e9a2babf0a64cef1eed78d0f0a40cf977172.zip
Call depgraph._add_dep() to add package dependencies to the graph
as soon as possible rather than pushing them onto the stack. svn path=/main/trunk/; revision=9885
-rw-r--r--pym/_emerge/__init__.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 633a7764a..54d263010 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -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: