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 1QJwjs-0000nF-7w for garchives@archives.gentoo.org; Tue, 10 May 2011 23:53:16 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 79A0C1C09E; Tue, 10 May 2011 23:53:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4DA7D1C09E for ; Tue, 10 May 2011 23:53:03 +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 BA8C21BC017 for ; Tue, 10 May 2011 23:53:02 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 30C7274489 for ; Tue, 10 May 2011 23:53:02 +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: <44675153854fe54fbd3c148fab2661df80fbf7ab.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: 44675153854fe54fbd3c148fab2661df80fbf7ab Date: Tue, 10 May 2011 23:53:02 +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: 56e185651b78d45c1a4e5f1adcc036a9 commit: 44675153854fe54fbd3c148fab2661df80fbf7ab Author: David James chromium org> AuthorDate: Tue May 10 20:41:06 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Tue May 10 23:47:50 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D44675153 Strip build-time dependencies when they're ignored and we're not in --reb= uild mode. This should improve depgraph calculation performance. TEST=3DRan test suite. BUG=3Dchromium-os:15144 Change-Id: I9e06817201d7a17ae9b44b424d01c1a2bd89210a --- pym/_emerge/depgraph.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 22a603e..f7ea686 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -1342,6 +1342,11 @@ class depgraph(object): elif root_deps =3D=3D "rdeps": ignore_build_time_deps =3D True =20 + # If rebuild mode is not enabled, it's safe to discard ignored + # build-time dependencies. + if ignore_build_time_deps and not self._rebuild.rebuild: + edepend["DEPEND"] =3D "" + deps =3D ( (depend_root, edepend["DEPEND"], self._priority(buildtime=3DTrue,