diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-15 00:29:06 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-15 00:29:06 -0400 |
commit | ddc6f95e39c48a639171bc4a41dcf7b4d27aec97 (patch) | |
tree | 1ecf7a16dd713bb8a3eb6439a4d61f1b7846dbfc /src/main.c | |
parent | 2876e612f7d15cfd9995343122b7f4fef38c1546 (diff) | |
download | stasis-ddc6f95e39c48a639171bc4a41dcf7b4d27aec97.tar.gz |
Fix unhandled installation error(s)
* Fix printing deferred package message when not installing deferred packages
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -521,12 +521,18 @@ int main(int argc, char *argv[]) { msg(OMC_MSG_L2, "Installing pip packages\n"); if (strlist_count(ctx.conda.pip_packages)) { - delivery_install_packages(&ctx, ctx.storage.conda_install_prefix, env_name, INSTALL_PKG_PIP, (struct StrList *[]) {ctx.conda.pip_packages, NULL}); + if (delivery_install_packages(&ctx, ctx.storage.conda_install_prefix, env_name, INSTALL_PKG_PIP, (struct StrList *[]) {ctx.conda.pip_packages, NULL})) { + exit(1); + } } - msg(OMC_MSG_L3, "Installing deferred pip packages\n"); if (strlist_count(ctx.conda.pip_packages_defer)) { - delivery_install_packages(&ctx, ctx.storage.conda_install_prefix, env_name, INSTALL_PKG_PIP | INSTALL_PKG_PIP_DEFERRED, (struct StrList *[]) {ctx.conda.pip_packages_defer, NULL}); + msg(OMC_MSG_L3, "Installing deferred pip packages\n"); + if (delivery_install_packages(&ctx, ctx.storage.conda_install_prefix, env_name, INSTALL_PKG_PIP | INSTALL_PKG_PIP_DEFERRED, (struct StrList *[]) {ctx.conda.pip_packages_defer, NULL})) { + exit(1); + } + } else { + msg(OMC_MSG_L3, "No deferred pip packages\n"); } conda_exec("list"); |