diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-06-28 10:10:29 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-06-28 10:10:29 -0400 |
commit | ed1d3a099549ec4e82e506a172ee7e49977ac070 (patch) | |
tree | 1a9cdadc7ad33282f179a16cc6437f0759af43bf /include | |
parent | 12fded0aa09d094799a901b72dd8adccac890696 (diff) | |
download | stasis-ed1d3a099549ec4e82e506a172ee7e49977ac070.tar.gz |
Disable overwriting releases by default
Diffstat (limited to 'include')
-rw-r--r-- | include/core.h | 1 | ||||
-rw-r--r-- | include/delivery.h | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/core.h b/include/core.h index 1ea9650..cea7a16 100644 --- a/include/core.h +++ b/include/core.h @@ -67,6 +67,7 @@ struct STASIS_GLOBAL { bool enable_docker; //!< Enable docker image builds bool enable_artifactory; //!< Enable artifactory uploads bool enable_testing; //!< Enable package testing + bool enable_overwrite; //!< Enable release file clobbering struct StrList *conda_packages; //!< Conda packages to install after initial activation struct StrList *pip_packages; //!< Pip packages to install after initial activation char *tmpdir; //!< Path to temporary storage directory diff --git a/include/delivery.h b/include/delivery.h index 971705f..969c803 100644 --- a/include/delivery.h +++ b/include/delivery.h @@ -391,4 +391,11 @@ int *bootstrap_build_info(struct Delivery *ctx); int delivery_dump_metadata(struct Delivery *ctx); +/** + * Determine whether a release on-disk matches the release name in use + * @param ctx Delivery context + * @return 0=no, 1=yes + */ +int delivery_exists(struct Delivery *ctx); + #endif //STASIS_DELIVERY_H |