diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2019-05-16 10:17:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-16 10:17:18 -0400 |
commit | 5c3adc2fbaebaca2324d1ff86f19e23a3fabd012 (patch) | |
tree | f41913c893b3a18f98195cb5159b0abf4b1e6cd4 /delivery_merge/cli | |
parent | fe759e1a7a5052339d00411c4162f3242bb5141b (diff) | |
parent | db949eb7a2e8e28d9808a638ae283de57043ab52 (diff) | |
download | delivery_merge-5c3adc2fbaebaca2324d1ff86f19e23a3fabd012.tar.gz |
Merge pull request #2 from astroconda/yaml-channels
Reset YAML channels
Diffstat (limited to 'delivery_merge/cli')
-rw-r--r-- | delivery_merge/cli/merge.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/delivery_merge/cli/merge.py b/delivery_merge/cli/merge.py index 6cf421e..45adf64 100644 --- a/delivery_merge/cli/merge.py +++ b/delivery_merge/cli/merge.py @@ -1,6 +1,11 @@ import os from ..conda import conda, conda_installer, conda_init_path -from ..merge import env_combine, testable_packages, integration_test +from ..merge import ( + env_combine, + testable_packages, + integration_test, + force_yaml_channels +) from argparse import ArgumentParser @@ -53,6 +58,9 @@ def main(): print("Exporting yaml configuration...") conda('env', 'export', '-n', name, '--file', yamlfile) + print("Fix up yaml channel order...") + force_yaml_channels(yamlfile, channels) + print("Exporting explicit dump...") with open(specfile, 'w+') as spec: proc = conda('list', '--explicit', '-n', name) |