From 88632013d090bb42811ac4f23a78939100e340c8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 12 Jan 2009 08:21:06 +0000 Subject: [PATCH] Don't assume that the package metadata contains a "repository" key. (trunk r12404) svn path=/main/branches/2.1.6/; revision=12464 --- 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 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" -- 2.26.2