diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-03-08 12:59:02 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-03-08 12:59:02 -0500 |
commit | 655f0ca987311f2947a56302741575d57fcadd74 (patch) | |
tree | 2d3d8f11d418c94fcb5fd88ae56eb5bf88c1f910 /src/deliverable.c | |
parent | 5f7d11f1864823d5bee142b0670342da084fdbfb (diff) | |
download | stasis-655f0ca987311f2947a56302741575d57fcadd74.tar.gz |
Fix python_compact not getting updated when target python version changed
Diffstat (limited to 'src/deliverable.c')
-rw-r--r-- | src/deliverable.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/deliverable.c b/src/deliverable.c index 77aa619..0ae94f7 100644 --- a/src/deliverable.c +++ b/src/deliverable.c @@ -441,9 +441,12 @@ int delivery_init(struct Delivery *ctx, struct INIFILE *ini, struct INIFILE *cfg getter(ini, "meta", "based_on", INIVAL_TYPE_STR) conv_str(ctx, meta.based_on) - getter(ini, "meta", "python", INIVAL_TYPE_STR) - conv_str(ctx, meta.python) - ctx->meta.python_compact = to_short_version(ctx->meta.python); + if (!ctx->meta.python) { + getter(ini, "meta", "python", INIVAL_TYPE_STR) + conv_str(ctx, meta.python) + guard_free(ctx->meta.python_compact) + ctx->meta.python_compact = to_short_version(ctx->meta.python); + } getter_required(ini, "conda", "installer_name", INIVAL_TYPE_STR) conv_str(ctx, conda.installer_name) |