summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-10-05 22:43:51 -0700
committerZac Medico <zmedico@gentoo.org>2010-10-05 22:43:51 -0700
commit4d16db005ab82fd0b93c0d58897a2bc8433be282 (patch)
tree205c7dba9537f1cc4d4102c674f359b74d4ead9f
parentee7052a94cf2b14745ec1c83c5f8e8d322e008b2 (diff)
downloadportage-4d16db005ab82fd0b93c0d58897a2bc8433be282.tar.gz
portage-4d16db005ab82fd0b93c0d58897a2bc8433be282.tar.bz2
portage-4d16db005ab82fd0b93c0d58897a2bc8433be282.zip
Fix 'repository' KeyError in Package constructor.
-rw-r--r--pym/_emerge/Package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/Package.py b/pym/_emerge/Package.py
index 8cb9a6d32..a93264c13 100644
--- a/pym/_emerge/Package.py
+++ b/pym/_emerge/Package.py
@@ -65,7 +65,7 @@ class Package(Task):
self.pv_split = self.cpv_split[1:]
if self.inherited is None:
self.inherited = frozenset()
- repo = _gen_valid_repo(self.metadata['repository'])
+ repo = _gen_valid_repo(self.metadata.get('repository', ''))
if not repo:
repo = '__unknown__'
self.metadata['repository'] = repo