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 1Pp1Yb-0005q4-8z for garchives@archives.gentoo.org; Mon, 14 Feb 2011 16:45:49 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7B8D2E095C; Mon, 14 Feb 2011 16:45:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 50564E095C for ; Mon, 14 Feb 2011 16:45:42 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A85841B40B6 for ; Mon, 14 Feb 2011 16:45:41 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 1FE768006A for ; Mon, 14 Feb 2011 16:45:41 +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: <9a8cf1722153806a758b6c8be33e6e8f01de36c1.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:2.1.9 commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/create_depgraph_params.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 9a8cf1722153806a758b6c8be33e6e8f01de36c1 Date: Mon, 14 Feb 2011 16:45:41 +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: X-Archives-Hash: e164f513d6a5a12256a10b0b3c413e39 commit: 9a8cf1722153806a758b6c8be33e6e8f01de36c1 Author: Zac Medico gentoo org> AuthorDate: Mon Feb 14 16:43:37 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Mon Feb 14 16:45:22 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D9a8cf172 depgraph: --deep=3D0 is equivalent to no deep param --- pym/_emerge/create_depgraph_params.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pym/_emerge/create_depgraph_params.py b/pym/_emerge/create_d= epgraph_params.py index 6b97ab7..735f12c 100644 --- a/pym/_emerge/create_depgraph_params.py +++ b/pym/_emerge/create_depgraph_params.py @@ -30,8 +30,9 @@ def create_depgraph_params(myopts, myaction): myopts.get("--selective", "n") !=3D "n": myparams["selective"] =3D True =20 - if "--deep" in myopts: - myparams["deep"] =3D myopts["--deep"] + deep =3D myopts.get("--deep") + if deep is not None and deep !=3D 0: + myparams["deep"] =3D deep if "--complete-graph" in myopts: myparams["complete"] =3D True if "--emptytree" in myopts: