From: Zac Medico Date: Mon, 12 Jan 2009 08:21:06 +0000 (-0000) Subject: Don't assume that the package metadata contains a "repository" key. X-Git-Tag: v2.1.6.5~23 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=88632013d090bb42811ac4f23a78939100e340c8;p=portage.git Don't assume that the package metadata contains a "repository" key. (trunk r12404) svn path=/main/branches/2.1.6/; revision=12464 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index c6a9323ea..262534015 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -3733,7 +3733,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"