From b74e3e1fa5b14634f0faf26740e7ad99cccecb37 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 14 Sep 2009 13:44:53 +0000 Subject: [PATCH] Fix broken virtual depth code from previous commit. svn path=/main/trunk/; revision=14273 --- pym/_emerge/depgraph.py | 3 +-- 1 file changed, 1 insertion(+), 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 -- 2.26.2