summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--morphlib/sourceresolver.py4
-rw-r--r--yarns/implementations.yarn2
2 files changed, 5 insertions, 1 deletions
diff --git a/morphlib/sourceresolver.py b/morphlib/sourceresolver.py
index d7c9707a..2346d2d6 100644
--- a/morphlib/sourceresolver.py
+++ b/morphlib/sourceresolver.py
@@ -374,6 +374,10 @@ class SourceResolver(object):
morphology = self._get_morphology(resolved_morphologies,
definitions_checkout_dir,
morph_loader, filename)
+
+ if morphology['name'] != chunk_name:
+ warnings.warn("Name '%s' doesn't match '%s in morpholgy: %s"
+ % (morphology['name'], chunk_name, filename))
else:
# Chunk uses one of the predefined build systems. In this case
# 'filename' will be faked (name of chunk + '.morph').
diff --git a/yarns/implementations.yarn b/yarns/implementations.yarn
index 8f4c3837..45bb2058 100644
--- a/yarns/implementations.yarn
+++ b/yarns/implementations.yarn
@@ -854,7 +854,7 @@ Implementations for building systems
cd "$DATADIR"/definitions
git checkout "$branch"
cat << EOF > "${chunk_name}".morph
- name: hello
+ name: "${chunk_name}"
kind: chunk
configure-commands:
- echo dummy configure