aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-05-06 17:17:06 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-05-11 15:55:54 -0400
commit5ec6f09c2abcc866b4ba34a995d5f61e7851df48 (patch)
tree2635c8fd111bdebaeccd4eb95e330a1df143cef2
parent095793d256f97ef8bd0820ffee78be1f6c8c9349 (diff)
downloadstasis-5ec6f09c2abcc866b4ba34a995d5f61e7851df48.tar.gz
Add debug output
-rw-r--r--src/lib/delivery/delivery_install.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/delivery/delivery_install.c b/src/lib/delivery/delivery_install.c
index e699122..ca41c82 100644
--- a/src/lib/delivery/delivery_install.c
+++ b/src/lib/delivery/delivery_install.c
@@ -404,15 +404,18 @@ int delivery_install_packages(struct Delivery *ctx, char *conda_install_dir, cha
continue;
}
if (INSTALL_PKG_PIP_DEFERRED & type) {
+ SYSDEBUG("Getting requirements for test: %s", name);
struct Test *info = requirement_from_test(ctx, name);
if (info) {
if (!strcmp(info->version, "HEAD") || is_git_sha(info->version)) {
+ SYSDEBUG("Using version: %s", info->version);
struct StrList *tag_data = strlist_init();
if (!tag_data) {
SYSERROR("Unable to allocate memory for tag data");
guard_free(args);
return -1;
}
+ SYSDEBUG("%s", "Tokenizing repository info tag: %s\n", info->repository_info_tag);
strlist_append_tokenize(tag_data, info->repository_info_tag, "-");
struct WheelInfo *whl = NULL;
@@ -420,13 +423,16 @@ int delivery_install_packages(struct Delivery *ctx, char *conda_install_dir, cha
char *hash = NULL;
if (strlist_count(tag_data) > 1) {
post_commit = strlist_item(tag_data, 1);
+ SYSDEBUG("post_commit: %s", post_commit);
hash = strlist_item(tag_data, 2);
+ SYSDEBUG("hash: %s", hash);
}
// We can't match on version here (index 0). The wheel's version is not guaranteed to be
// equal to the tag; setuptools_scm auto-increments the value, the user can change it manually,
// etc.
errno = 0;
+ SYSDEBUG("%s", "Getting wheel information");
whl = wheelinfo_get(ctx->storage.wheel_artifact_dir, info->name,
(char *[]) {ctx->meta.python_compact, ctx->system.arch,
"none", "any",
@@ -441,8 +447,10 @@ int delivery_install_packages(struct Delivery *ctx, char *conda_install_dir, cha
SYSERROR("No wheel packages found that match the description of '%s'", info->name);
} else {
// found, replace the original version with newly detected version
+ SYSDEBUG("Replacing version: %s", whl->version);
guard_free(info->version);
info->version = strdup(whl->version);
+ SYSDEBUG("Version replaced with: %s", whl->version);
}
guard_strlist_free(&tag_data);
wheelinfo_free(&whl);