From 9020790e6af189f4ea0badee313bbc02d032197e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 23 Sep 2014 19:28:22 -0700 Subject: [PATCH] _want_update_pkg: fix bug #523532 This fixes depth increment to handle _UNREACHABLE_DEPTH. Note that there are some remaining "depth + 1" expressions that are protected by short circuit evaluation (when deep is True). Fixes: 336ab90212c8 ("depgraph._add_dep: fix bug #520950") X-Gentoo-Bug: 523532 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=523532 --- pym/_emerge/depgraph.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index f4e5a1b..f6f716d 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -4993,7 +4993,8 @@ class depgraph(object): raise depth = parent.depth or 0 - depth += 1 + if isinstance(depth, int): + depth += 1 if arg_atoms: for arg, atom in arg_atoms: -- 1.8.5.5