From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SgLPW-00026O-5U for garchives@archives.gentoo.org; Sun, 17 Jun 2012 19:45:22 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A6298E0653; Sun, 17 Jun 2012 19:45:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 70764E0653 for ; Sun, 17 Jun 2012 19:45:14 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 530341B403E for ; Sun, 17 Jun 2012 19:45:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id E1081E5430 for ; Sun, 17 Jun 2012 19:45:11 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1339962296.3534887c798fcdb7c2569cfa0ce1c59c9871e27a.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/depgraph.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 3534887c798fcdb7c2569cfa0ce1c59c9871e27a X-VCS-Branch: master Date: Sun, 17 Jun 2012 19:45:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: f1b0b971-1fe6-4c9f-998d-988818bb5155 X-Archives-Hash: 606bd3cd1354ac1b74ce497aef4f5581 commit: 3534887c798fcdb7c2569cfa0ce1c59c9871e27a Author: Zac Medico gentoo org> AuthorDate: Sun Jun 17 19:44:56 2012 +0000 Commit: Zac Medico gentoo org> CommitDate: Sun Jun 17 19:44:56 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D3534887c depgraph._add_pkg: preserve previous pkg depth --- pym/_emerge/depgraph.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 8aa53aa..963ea0c 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 =3D 0 + if pkg.depth is not None: + depth =3D min(pkg.depth, depth) pkg.depth =3D depth deep =3D self._dynamic_config.myparams.get("deep", 0) recurse =3D deep is True or depth + 1 <=3D deep