aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-10-04 16:27:26 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-10-04 16:27:26 -0400
commit941ac53f2f301c90ab2ada7e6067f67d4104836a (patch)
treeae0b6578f3052364c3909f745f651ba20f2e34a8 /src
parentf849984228ae3f54546543e0b4877fa38fd9d7ba (diff)
downloadstasis-941ac53f2f301c90ab2ada7e6067f67d4104836a.tar.gz
Change requirement_from_test helper to be variable, not constrequirement_from_test-type
* Other functions need to edit the test block values
Diffstat (limited to 'src')
-rw-r--r--src/delivery_install.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/delivery_install.c b/src/delivery_install.c
index 6f745a7..1ecedc5 100644
--- a/src/delivery_install.c
+++ b/src/delivery_install.c
@@ -1,6 +1,6 @@
#include "delivery.h"
-static const struct Test *requirement_from_test(struct Delivery *ctx, const char *name) {
+static struct Test *requirement_from_test(struct Delivery *ctx, const char *name) {
struct Test *result;
result = NULL;
@@ -61,7 +61,7 @@ int delivery_install_packages(struct Delivery *ctx, char *conda_install_dir, cha
continue;
}
if (INSTALL_PKG_PIP_DEFERRED & type) {
- struct Test *info = (struct Test *) requirement_from_test(ctx, name);
+ struct Test *info = requirement_from_test(ctx, name);
if (info) {
if (!strcmp(info->version, "HEAD")) {
struct StrList *tag_data = strlist_init();