summaryrefslogtreecommitdiff
path: root/morphlib/morphology.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/morphology.py')
-rw-r--r--morphlib/morphology.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/morphlib/morphology.py b/morphlib/morphology.py
index 73387a9c..4fe6344a 100644
--- a/morphlib/morphology.py
+++ b/morphlib/morphology.py
@@ -32,10 +32,11 @@ class Morphology(object):
self._dict = json.load(self._fp)
if self.kind == 'stratum':
- for name, source in self.sources.iteritems():
+ for source in self.sources:
if 'repo' not in source:
- source['repo'] = name
- source['repo'] = self._join_with_baseurl(source['repo'])
+ source['repo'] = source['name']
+ repo = self._join_with_baseurl(source['repo'])
+ source['repo'] = unicode(repo)
self.filename = self._fp.name