aboutsummaryrefslogtreecommitdiff
path: root/src/lib/delivery
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2026-02-12 15:18:32 -0500
committerGitHub <noreply@github.com>2026-02-12 15:18:32 -0500
commitd6b60205974136969212a2e415dadd773b471bc0 (patch)
tree4889f9b9b2767456d0375dd5a262259ad732f8c6 /src/lib/delivery
parent7ae2f824eb52b4294465a1430836ecce73419c02 (diff)
parent2cd2d2c47593941f002ed45f44f0e0c1072738d7 (diff)
downloadstasis-d6b60205974136969212a2e415dadd773b471bc0.tar.gz
Merge pull request #125 from jhunkeler/retry-download
Add a retry loop to download()
Diffstat (limited to 'src/lib/delivery')
-rw-r--r--src/lib/delivery/delivery_conda.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/delivery/delivery_conda.c b/src/lib/delivery/delivery_conda.c
index 8974ae8..191d93f 100644
--- a/src/lib/delivery/delivery_conda.c
+++ b/src/lib/delivery/delivery_conda.c
@@ -26,9 +26,12 @@ int delivery_get_conda_installer(struct Delivery *ctx, char *installer_url) {
sprintf(script_path, "%s/%s", ctx->storage.tmpdir, installer);
if (access(script_path, F_OK)) {
// Script doesn't exist
- long fetch_status = download(installer_url, script_path, NULL);
+ char *errmsg = NULL;
+ long fetch_status = download(installer_url, script_path, &errmsg);
if (HTTP_ERROR(fetch_status) || fetch_status < 0) {
// download failed
+ SYSERROR("download failed: %s: %s\n", errmsg, installer_url);
+ guard_free(errmsg);
return -1;
}
} else {