diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2024-10-08 10:13:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-08 10:13:34 -0400 |
commit | dbc408f22dbe40ea778b60a20ebf8ce261dd9235 (patch) | |
tree | f6c484f4e4f369e6244dd7dabcae675caa7b00ca /src/delivery_install.c | |
parent | da3ef1951d68485f8d833674c7de2d724a668342 (diff) | |
parent | 49e2e250103b89f5461a591334e4133f3ba8c365 (diff) | |
download | stasis-dbc408f22dbe40ea778b60a20ebf8ce261dd9235.tar.gz |
Merge pull request #55 from jhunkeler/per-mission-base-env
Default mission environment(s)
Diffstat (limited to 'src/delivery_install.c')
-rw-r--r-- | src/delivery_install.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/delivery_install.c b/src/delivery_install.c index a7754e8..76c3f4a 100644 --- a/src/delivery_install.c +++ b/src/delivery_install.c @@ -99,8 +99,12 @@ int delivery_overlay_packages_from_env(struct Delivery *ctx, const char *env_nam } } } - guard_strlist_free(&ctx->conda.pip_packages); - ctx->conda.pip_packages = strlist_copy(new_list); + + // Replace the package manifest as needed + if (strlist_count(new_list)) { + guard_strlist_free(&ctx->conda.pip_packages); + ctx->conda.pip_packages = strlist_copy(new_list); + } guard_strlist_free(&new_list); guard_strlist_free(&frozen_list); return 0; |