aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-05-22 01:07:05 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-05-22 01:07:05 -0400
commitea15b7981bd3511a692ab68f528087c6d7be6464 (patch)
tree7ce23d02f2f851a65062a19b495f06db21b0581e
parent425e59b2e430fb5715fb943a8b64bbb867ee823b (diff)
downloaddm-ea15b7981bd3511a692ab68f528087c6d7be6464.tar.gz
Support YAML configs as input
-rw-r--r--source/merge.d3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/merge.d b/source/merge.d
index e26ab73..af49fa7 100644
--- a/source/merge.d
+++ b/source/merge.d
@@ -62,8 +62,9 @@ bool env_combine(ref Conda conda, string name, string specfile, string mergefile
int retval = 0;
string[] specs;
+ string opmode = specfile.endsWith(".yml") ? "env " : "";
- if(conda.run("create -n " ~ name ~ " --file " ~ specfile)) {
+ if(conda.run(opmode ~ "create -n " ~ name ~ " --file " ~ specfile)) {
return false;
}