From: Zac Medico Date: Wed, 6 Oct 2010 05:43:51 +0000 (-0700) Subject: Fix 'repository' KeyError in Package constructor. X-Git-Tag: v2.2_rc90~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4d16db005ab82fd0b93c0d58897a2bc8433be282;p=portage.git Fix 'repository' KeyError in Package constructor. --- 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