aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-06-04 10:24:28 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-06-04 10:24:28 -0400
commita4eff2558e67f8ef405b561dcec260f9b41430a7 (patch)
treee0e00e96a8c76d387f70917c8ff5600041d0c29b /src
parentd69338e12efd6c02f2b19296564db3222e6d860c (diff)
downloadstasis-a4eff2558e67f8ef405b561dcec260f9b41430a7.tar.gz
delivery_conda_enable populates CondaCapabilities members
Diffstat (limited to 'src')
-rw-r--r--src/lib/delivery/delivery_conda.c12
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);
}