From 267d14c26d8082c20efc66be333213e66a0d541a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 9 Jan 2009 22:51:08 +0000 Subject: [PATCH] Don't assume that the package metadata contains a "repository" key. svn path=/main/trunk/; revision=12404 --- pym/_emerge/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.26.2