diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-06-04 10:24:28 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-06-22 11:55:20 -0400 |
| commit | bdcf35cfa3d73645cf0658b318787a80a3004257 (patch) | |
| tree | 7f4e25897104233e23b5c88edd3dcf6ab33c2b79 /src | |
| parent | 03343d3d294457caa673135e738e7d1d3101e94c (diff) | |
| download | stasis-bdcf35cfa3d73645cf0658b318787a80a3004257.tar.gz | |
delivery_conda_enable populates CondaCapabilities members
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/delivery/delivery_conda.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/delivery/delivery_conda.c b/src/lib/delivery/delivery_conda.c index 117e6c9..e1a07f1 100644 --- a/src/lib/delivery/delivery_conda.c +++ b/src/lib/delivery/delivery_conda.c @@ -120,7 +120,17 @@ void delivery_conda_enable(struct Delivery *ctx, char *conda_install_dir) { exit(1); } - if (conda_setup_headless()) { + if (conda_capable(&ctx->conda.capabilities)) { + SYSERROR("Conda capability check failed"); + exit(1); + } + + if (!ctx->conda.capabilities.usable) { + SYSERROR("Conda is broken"); + exit(1); + } + + if (conda_setup_headless(&ctx->conda.capabilities)) { // no COE check. this call must succeed. exit(1); } |
