summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-09-14 13:44:53 +0000
committerZac Medico <zmedico@gentoo.org>2009-09-14 13:44:53 +0000
commitb74e3e1fa5b14634f0faf26740e7ad99cccecb37 (patch)
treeb248a7e1c64c01c1e5319a0737fba8fb95b4e52c
parent7efefdd21c9064190336770944f65a2cb38d02d7 (diff)
downloadportage-b74e3e1fa5b14634f0faf26740e7ad99cccecb37.tar.gz
portage-b74e3e1fa5b14634f0faf26740e7ad99cccecb37.tar.bz2
portage-b74e3e1fa5b14634f0faf26740e7ad99cccecb37.zip
Fix broken virtual depth code from previous commit.
svn path=/main/trunk/; revision=14273
-rw-r--r--pym/_emerge/depgraph.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index a50921877..b44e5b19f 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -1182,10 +1182,9 @@ class depgraph(object):
# accurate since multilple levels of indirect virtual deps may
# have been traversed. The _add_pkg call will reset the depth to
# 0 if this package happens to match an argument.
- virt_pkg.depth = depth + 1
if not self._add_pkg(virt_pkg,
Dependency(atom=Atom('=' + virt_pkg.cpv),
- depth=depth, parent=pkg, priority=dep_priority.copy(),
+ depth=(depth + 1), parent=pkg, priority=dep_priority.copy(),
root=dep_root)):
return 0