From: Zac Medico Date: Mon, 14 Sep 2009 13:44:53 +0000 (-0000) Subject: Fix broken virtual depth code from previous commit. X-Git-Tag: v2.2_rc41~9 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=b74e3e1fa5b14634f0faf26740e7ad99cccecb37;p=portage.git Fix broken virtual depth code from previous commit. svn path=/main/trunk/; revision=14273 --- 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