summaryrefslogtreecommitdiff
path: root/morphlib/builder2.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2013-12-09 15:41:29 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2014-01-15 17:43:38 +0000
commitbea188ba004eb1b8d3057a5cfa2c1a167ef72d14 (patch)
tree423cc431758c5a606d93b09cfe0415a27b441506 /morphlib/builder2.py
parent74d4cfc34478881685365a0c674342ebe24f4c0a (diff)
downloadmorph-bea188ba004eb1b8d3057a5cfa2c1a167ef72d14.tar.gz
Replace chunk 'chunks' field with 'products'
I think that it's confusing for both strata and chunk morphologies to have a 'chunks' field, with the former listing sources and the latter listing rules for splitting this source into artifacts. The design for splitting strata has roughly the same idea, but operating on chunk artifact names, rather than file names, so a name that can be used for both was chosen. Splits and artifacts weren't satisfactory names, so they're now called 'products'. It was decided to break backwards compatibility of chunk morphologies being able to specify 'chunks', since the format has changed, so extra code would be required to translate the format, and the only users of the 'chunks' field was the test suite, since there was no way to select from the system, which chunk artifacts were included.
Diffstat (limited to 'morphlib/builder2.py')
-rw-r--r--morphlib/builder2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/morphlib/builder2.py b/morphlib/builder2.py
index bab89aa2..34ebaa81 100644
--- a/morphlib/builder2.py
+++ b/morphlib/builder2.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2012-2013 Codethink Limited
+# Copyright (C) 2012-2014 Codethink Limited
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -423,7 +423,7 @@ class ChunkBuilder(BuilderBase):
built_artifacts = []
filenames = []
with self.build_watch('create-chunks'):
- specs = self.artifact.source.morphology['chunks']
+ specs = self.artifact.source.morphology['products']
if len(specs) == 0:
specs = {
self.artifact.source.morphology['name']: ['.'],