summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-06-17 12:44:56 -0700
committerZac Medico <zmedico@gentoo.org>2012-06-17 12:47:48 -0700
commit49ee1ca5ea9868f2f4feefcc9e72edb0dffff4c8 (patch)
treeba278eed05da0ebd80ff8166bada3cd650cafc9a
parenteb401abc6a140aca85fc93c1744bc371f10ada10 (diff)
downloadportage-49ee1ca5ea9868f2f4feefcc9e72edb0dffff4c8.tar.gz
portage-49ee1ca5ea9868f2f4feefcc9e72edb0dffff4c8.tar.bz2
portage-49ee1ca5ea9868f2f4feefcc9e72edb0dffff4c8.zip
depgraph._add_pkg: preserve previous pkg depth
-rw-r--r--pym/_emerge/depgraph.py2
1 files changed, 2 insertions, 0 deletions
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