From: Zac Medico Date: Fri, 9 Jan 2009 22:51:08 +0000 (-0000) Subject: Don't assume that the package metadata contains a "repository" key. X-Git-Tag: v2.2_rc21~26 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=267d14c26d8082c20efc66be333213e66a0d541a;p=portage.git Don't assume that the package metadata contains a "repository" key. svn path=/main/trunk/; revision=12404 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 476e2d9a1..39acda1a5 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -3752,7 +3752,7 @@ class MergeListItem(CompositeTask): portdb = pkg.root_config.trees["porttree"].dbapi portdir_repo_name = portdb._repository_map.get(portdb.porttree_root) if portdir_repo_name: - pkg_repo_name = pkg.metadata["repository"] + pkg_repo_name = pkg.metadata.get("repository") if pkg_repo_name != portdir_repo_name: if not pkg_repo_name: pkg_repo_name = "unknown repo"