diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-15 00:55:49 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-15 01:03:36 -0400 |
commit | accc7f12ff3b178f5d267dd4af7ffd21b6122248 (patch) | |
tree | a429a74495a2b8a13a1909e7f7ef9962c38d00aa | |
parent | ad9374179faa76476affb1cb9e2d2345f83ff1b1 (diff) | |
download | stasis-accc7f12ff3b178f5d267dd4af7ffd21b6122248.tar.gz |
When -p/--python argument is used, replace the value of meta:python to match the requested version
-rw-r--r-- | src/deliverable.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/deliverable.c b/src/deliverable.c index 002bab3..34cf635 100644 --- a/src/deliverable.c +++ b/src/deliverable.c @@ -503,6 +503,8 @@ static int populate_delivery_ini(struct Delivery *ctx) { conv_str(&ctx->meta.python, val); guard_free(ctx->meta.python_compact); ctx->meta.python_compact = to_short_version(ctx->meta.python); + } else { + ini_setval(&ini, INI_SETVAL_REPLACE, "meta", "python", ctx->meta.python); } ini_getval_required(ini, "conda", "installer_name", INIVAL_TYPE_STR, &val); |