summaryrefslogtreecommitdiff
path: root/morphlib/stagingarea.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2014-09-22 09:22:56 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2014-09-22 09:22:56 +0000
commitcb7eed0a589c7b2ea62ca6df789422d09b9dcb43 (patch)
treee6bb5d5c4e06f14de98569298cc00e3fcbbf829f /morphlib/stagingarea.py
parente62eced3044c2383de3029e9d7ae2b2649704e80 (diff)
parent945c60a1aa0b48f49c08e70206a5ca24f1c710bb (diff)
downloadmorph-cb7eed0a589c7b2ea62ca6df789422d09b9dcb43.tar.gz
Merge branch 'baserock/richardmaw-os/tidy-build-logic-v7'
Reviewed-by: Lars Wirzenius (+2 to misc fixups) Reviewed-by: Sam Thursfield (+1 to per-source building) Reviewed-by: Paul Sherwood (+1 to per-source building)
Diffstat (limited to 'morphlib/stagingarea.py')
-rw-r--r--morphlib/stagingarea.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/morphlib/stagingarea.py b/morphlib/stagingarea.py
index 0126b4d9..bfe0a716 100644
--- a/morphlib/stagingarea.py
+++ b/morphlib/stagingarea.py
@@ -65,8 +65,8 @@ class StagingArea(object):
os.makedirs(dirname)
def _dir_for_source(self, source, suffix):
- basename = '%s.%s' % (str(source.morphology['name']), suffix)
- dirname = os.path.join(self.dirname, basename)
+ dirname = os.path.join(self.dirname,
+ '%s.%s' % (str(source.name), suffix))
self._mkdir(dirname)
return dirname