From accc7f12ff3b178f5d267dd4af7ffd21b6122248 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 15 Apr 2024 00:55:49 -0400 Subject: When -p/--python argument is used, replace the value of meta:python to match the requested version --- src/deliverable.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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); -- cgit