From 49ee1ca5ea9868f2f4feefcc9e72edb0dffff4c8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 17 Jun 2012 12:44:56 -0700 Subject: [PATCH] depgraph._add_pkg: preserve previous pkg depth --- pym/_emerge/depgraph.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.26.2