aboutsummaryrefslogtreecommitdiff
path: root/src/lib/delivery
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-06-29 15:16:55 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-06-30 09:49:18 -0400
commit3c2ee2141130762cfc3f19530f9d9f2808325741 (patch)
tree04632fcf7320fbcd525635e516d4575ebfee56bc /src/lib/delivery
parent4a189db63597c66b15101ba0344494f49d9af3b1 (diff)
downloadstasis-3c2ee2141130762cfc3f19530f9d9f2808325741.tar.gz
Refactor delivery_install.c to use wheel_*() library functions, instead of wheelinfo_*() file name parser.
Diffstat (limited to 'src/lib/delivery')
-rw-r--r--src/lib/delivery/delivery_install.c22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/lib/delivery/delivery_install.c b/src/lib/delivery/delivery_install.c
index bb99014..b03086b 100644
--- a/src/lib/delivery/delivery_install.c
+++ b/src/lib/delivery/delivery_install.c
@@ -1,6 +1,6 @@
#include "delivery.h"
#include "conda.h"
-#include "wheelinfo.h"
+#include "wheel.h"
#include "version_compare.h"
static struct Test *requirement_from_test(struct Delivery *ctx, const char *name) {
@@ -422,7 +422,7 @@ int delivery_install_packages(struct Delivery *ctx, char *conda_install_dir, cha
SYSDEBUG("Tokenizing repository info tag: %s", info->repository_info_tag);
strlist_append_tokenize(tag_data, info->repository_info_tag, "-");
- struct WheelInfo *whl = NULL;
+ struct Wheel *whl = NULL;
char *post_commit = NULL;
char *hash = NULL;
if (strlist_count(tag_data) > 1) {
@@ -437,7 +437,7 @@ int delivery_install_packages(struct Delivery *ctx, char *conda_install_dir, cha
// etc.
errno = 0;
SYSDEBUG("%s", "Getting wheel information");
- whl = wheelinfo_get(ctx->storage.wheel_artifact_dir, info->name,
+ whl = wheel_search(ctx->storage.wheel_artifact_dir, info->name,
(char *[]) {ctx->meta.python_compact, ctx->system.arch,
"none", "any",
post_commit, hash,
@@ -451,13 +451,21 @@ 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);
+ SYSDEBUG("Replacing version: %s", whl->metadata->version);
guard_free(info->version);
- info->version = strdup(whl->version);
- SYSDEBUG("Version replaced with: %s", whl->version);
+ info->version = strdup(whl->metadata->version);
+ SYSDEBUG("Version replaced with: %s", info->version);
}
guard_strlist_free(&tag_data);
- wheelinfo_free(&whl);
+ struct WheelDisplay si_opt;
+ memset(&si_opt, true, sizeof(si_opt));
+ // Disable file record overview (too long)
+ si_opt.dist.record = false;
+ // Disable package description output (too long)
+ si_opt.metadata.description = false;
+
+ wheel_show_info(whl, si_opt);
+ wheel_package_free(&whl);
}
char req[255] = {0};