Commit 52cadd15 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: Tweak logic, mostly for unit tests

parent cd5e1316
...@@ -1203,8 +1203,9 @@ def install_miniconda(ctx): ...@@ -1203,8 +1203,9 @@ def install_miniconda(ctx):
channel_priority: strict #!final channel_priority: strict #!final
""") """)
channels = list(ctx.environment_channels) channels = list(ctx.environment_channels)
channels[0] += ' #!top' if len(channels) > 0:
channels[-1] += ' #!bottom' channels[0] += ' #!top'
channels[-1] += ' #!bottom'
condarc += '\nchannels: #!final\n' condarc += '\nchannels: #!final\n'
for channel in channels: for channel in channels:
condarc += ' - {}\n'.format(channel) condarc += ' - {}\n'.format(channel)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment