diff options
Diffstat (limited to 'src')
| -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; | 
