aboutsummaryrefslogtreecommitdiff
path: root/src/lib/delivery/delivery.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2025-03-20 19:48:13 -0400
committerGitHub <noreply@github.com>2025-03-20 19:48:13 -0400
commit5da81c51855b99bc8118d15dce7b8063af8a9afe (patch)
treece785d03c64cf66c41fa8430f10dbce76810e06b /src/lib/delivery/delivery.c
parent9a8407077c036db8d7d4cc4f790e74cbff412514 (diff)
parentedd6f8819fdfdc900cc5069665c6fac73ea14edf (diff)
downloadstasis-5da81c51855b99bc8118d15dce7b8063af8a9afe.tar.gz
Merge pull request #101 from jhunkeler/without-extras-in-spec
Without extras in spec
Diffstat (limited to 'src/lib/delivery/delivery.c')
-rw-r--r--src/lib/delivery/delivery.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/lib/delivery/delivery.c b/src/lib/delivery/delivery.c
index 7ae2b01..d480ab4 100644
--- a/src/lib/delivery/delivery.c
+++ b/src/lib/delivery/delivery.c
@@ -210,15 +210,7 @@ void delivery_defer_packages(struct Delivery *ctx, int type) {
} else {
strncpy(package_name, name, sizeof(package_name) - 1);
}
-
- char *extra_begin = strchr(package_name, '[');
- char *extra_end = NULL;
- if (extra_begin) {
- extra_end = strchr(extra_begin, ']');
- if (extra_end) {
- *extra_begin = '\0';
- }
- }
+ remove_extras(package_name);
msg(STASIS_MSG_L3, "package '%s': ", package_name);
@@ -294,10 +286,10 @@ void delivery_defer_packages(struct Delivery *ctx, int type) {
msg(STASIS_MSG_WARN | STASIS_MSG_L2, "No %s packages were filtered by test definitions\n", mode);
} else {
if (DEFER_CONDA == type) {
- strlist_free(&ctx->conda.conda_packages);
+ guard_strlist_free(&ctx->conda.conda_packages);
ctx->conda.conda_packages = strlist_copy(filtered);
} else if (DEFER_PIP == type) {
- strlist_free(&ctx->conda.pip_packages);
+ guard_strlist_free(&ctx->conda.pip_packages);
ctx->conda.pip_packages = strlist_copy(filtered);
}
}