diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-10 08:44:45 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-10 08:44:45 -0400 |
commit | cb7facb2a0951d8548211bcdb7b0df09203dc94d (patch) | |
tree | e18cc3adcd718bb4adab38178dbd060ff49f745a /include | |
parent | 0d30c044faf7d049e01b0591c792baf8e7fe1151 (diff) | |
download | stasis-cb7facb2a0951d8548211bcdb7b0df09203dc94d.tar.gz |
Rewriting the specfile is now a two stage process
* This allows for generating a template spec file that can consumed and manipulated by the Dockerfile, and OMC's machinery
* To reduce complexity the tpl_* functions are not used.
Diffstat (limited to 'include')
-rw-r--r-- | include/deliverable.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/deliverable.h b/include/deliverable.h index 270aee0..ad56a05 100644 --- a/include/deliverable.h +++ b/include/deliverable.h @@ -16,6 +16,9 @@ #define DELIVERY_PLATFORM_CONDA_INSTALLER 2 #define DELIVERY_PLATFORM_RELEASE 3 +#define DELIVERY_REWRITE_SPEC_STAGE_1 0 +#define DELIVERY_REWRITE_SPEC_STAGE_2 1 + #define INSTALL_PKG_CONDA 1 << 1 ///< Toggle conda package installation #define INSTALL_PKG_CONDA_DEFERRED 1 << 2 ///< Toggle deferred conda package installation #define INSTALL_PKG_PIP 1 << 3 ///< Toggle pip package installation @@ -247,7 +250,7 @@ char *delivery_get_release_header(struct Delivery *ctx); * @param ctx poitner to Delivery context * @param filename path to delivery artifact (Conda YAML file) */ -void delivery_rewrite_spec(struct Delivery *ctx, char *filename); +void delivery_rewrite_spec(struct Delivery *ctx, char *filename, unsigned stage); /** * Copy compiled wheels to artifact storage |