summaryrefslogtreecommitdiff
path: root/morphlib
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib')
-rw-r--r--morphlib/plugins/distbuild_plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/plugins/distbuild_plugin.py b/morphlib/plugins/distbuild_plugin.py
index c60dee6e..50ab7eeb 100644
--- a/morphlib/plugins/distbuild_plugin.py
+++ b/morphlib/plugins/distbuild_plugin.py
@@ -59,7 +59,7 @@ class SerialiseArtifactPlugin(cliapp.Plugin):
raise cliapp.AppException('Must get triplet')
repo_name, ref, morph_name = args
- filename = '%s.morph' % morph_name
+ filename = morphlib.util.sanitise_morphology_path(morph_name)
build_command = morphlib.buildcommand.BuildCommand(self.app)
srcpool = build_command.create_source_pool(repo_name, ref, filename)
artifact = build_command.resolve_artifacts(srcpool)