summaryrefslogtreecommitdiff
path: root/morphlib/builder2.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2013-01-29 12:18:09 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2013-02-11 14:12:14 +0000
commit6e048eeac64773072bda9a70fcf15b33ab0c7765 (patch)
treef79afdb396286a1fead597caf372d447c84d36c3 /morphlib/builder2.py
parentaa644f02e326f1bc67d77e32c772dee91f876fc0 (diff)
downloadmorph-6e048eeac64773072bda9a70fcf15b33ab0c7765.tar.gz
Make metadata include the repo-alias.
This is required for reproducing the morphologies that created the artifacts. It is possible, but expensive, to `unexpand` a url, provided your repository aliases are the same as the morphology's, but this may not always be the case.
Diffstat (limited to 'morphlib/builder2.py')
-rw-r--r--morphlib/builder2.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/morphlib/builder2.py b/morphlib/builder2.py
index 9ed75397..68768699 100644
--- a/morphlib/builder2.py
+++ b/morphlib/builder2.py
@@ -200,6 +200,7 @@ class BuilderBase(object):
'kind': self.artifact.source.morphology['kind'],
'description': self.artifact.source.morphology['description'],
'repo': self.artifact.source.repo.url,
+ 'repo-alias': self.artifact.source.repo_name,
'original_ref': self.artifact.source.original_ref,
'sha1': self.artifact.source.sha1,
'morphology': self.artifact.source.filename,