summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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