Skip to content

Commit 8b53ac1

Browse files
committed
Improve conditional
1 parent d4569c3 commit 8b53ac1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

constructor/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ def add_condarc(info):
147147
condarc["channels"] = channels
148148
if channel_alias:
149149
condarc["channel_alias"] = channel_alias
150-
if mirrored_channels and info.get("_conda_exe_type") == StandaloneExe.MAMBA:
150+
# The mirrored_channels key is only supported by mamba
151+
if mirrored_channels and "mamba" in info.get("specs", []):
151152
condarc["mirrored_channels"] = mirrored_channels
152153
if isinstance(condarc, dict):
153154
condarc = yaml_to_string(condarc)

0 commit comments

Comments
 (0)