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 1R5PMh-0000Nf-ID for garchives@archives.gentoo.org; Sun, 18 Sep 2011 21:57:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DAB2E21C38C; Sun, 18 Sep 2011 21:57:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id AC37E21C38C for ; Sun, 18 Sep 2011 21:57:23 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 166F71B4027 for ; Sun, 18 Sep 2011 21:57:23 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 3300580042 for ; Sun, 18 Sep 2011 21:57:22 +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: <7307975a8f4ee465a27ed7cd28fde5db22607248.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: 7307975a8f4ee465a27ed7cd28fde5db22607248 Date: Sun, 18 Sep 2011 21:57:22 +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: 62229faef0c4fd6b0967ba0d4ae59ef8 commit: 7307975a8f4ee465a27ed7cd28fde5db22607248 Author: Zac Medico gentoo org> AuthorDate: Sun Sep 18 21:57:08 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Sun Sep 18 21:57:08 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D7307975a get_dep_chain: fix KeyError if start_node is root --- pym/_emerge/depgraph.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 400207e..deda441 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -2704,7 +2704,7 @@ class depgraph(object): traversed_nodes.add(start_node) =20 start_node_parent_atoms =3D {} - for ppkg, patom in all_parents[node]: + for ppkg, patom in all_parents.get(node, []): # Get a list of suitable atoms. For use deps # (aka unsatisfied_dependency is not None) we # need that the start_node doesn't match the atom.