From: Zac Medico Date: Sun, 17 Jun 2012 19:44:56 +0000 (-0700) Subject: depgraph._add_pkg: preserve previous pkg depth X-Git-Tag: v2.2.0_alpha111~33 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=49ee1ca5ea9868f2f4feefcc9e72edb0dffff4c8;p=portage.git depgraph._add_pkg: preserve previous pkg depth --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 8aa53aa59..9aa9d0430 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -1345,6 +1345,8 @@ class depgraph(object): # If we are in --nodeps (no recursion) mode, we obviously only check 1 level of dependencies. if arg_atoms: depth = 0 + if previously_added and pkg.depth is not None: + depth = min(pkg.depth, depth) pkg.depth = depth deep = self._dynamic_config.myparams.get("deep", 0) recurse = deep is True or depth + 1 <= deep