From a9d975389aaf5d79d738517b98161e375e757cba Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 18 Nov 2024 09:27:35 -0500 Subject: Break down indexer into independent source files * Generate test result output * Add helper function to manage changing file extensions --- include/utils.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/utils.h b/include/utils.h index e26b3c5..87f28cc 100644 --- a/include/utils.h +++ b/include/utils.h @@ -408,4 +408,9 @@ char *find_version_spec(char *package_name); */ int env_manipulate_pathstr(const char *key, char *path, int mode); +/** +* Append or replace a file extension +*/ +int gen_file_extension_str(char *filename, const char *extension); + #endif //STASIS_UTILS_H -- cgit From 9173fe4a472500b3f87780d116ff7a54d4729c78 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 22 Nov 2024 15:46:56 -0500 Subject: Add basic unindent function --- include/str.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/str.h b/include/str.h index 7254225..bb96db0 100644 --- a/include/str.h +++ b/include/str.h @@ -308,4 +308,6 @@ char *tolower_s(char *s); */ char *to_short_version(const char *s); +void unindent(char *s); + #endif //STASIS_STR_H -- cgit From 080866ee9400dbc1cf82a71621e55cb20861f6e8 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 3 Dec 2024 00:57:34 -0500 Subject: Add DELIVERY_[NOT_]FOUND defines * Add delivery_series_sync function to download previously delivered files from artifactory --- include/delivery.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include') diff --git a/include/delivery.h b/include/delivery.h index 2ab25d1..40ca3e6 100644 --- a/include/delivery.h +++ b/include/delivery.h @@ -424,6 +424,9 @@ int populate_mission_ini(struct Delivery **ctx, int render_mode); void validate_delivery_ini(struct INIFILE *ini); int filter_repo_tags(char *repo, struct StrList *patterns); + +#define DELIVERY_NOT_FOUND 0 +#define DELIVERY_FOUND 1 /** * Determine whether a release on-disk matches the release name in use * @param ctx Delivery context @@ -433,4 +436,13 @@ int delivery_exists(struct Delivery *ctx); int delivery_overlay_packages_from_env(struct Delivery *ctx, const char *env_name); +/** + * Retrieve remote deliveries associated with the current version series + * @param ctx Delivery context + * @return -1 on error + * @return 1 on failure + * @return 0 on success + */ +int delivery_series_sync(struct Delivery *ctx); + #endif //STASIS_DELIVERY_H -- cgit From 5796ce9338c7fe2aa8a26766ff9e01448d785c99 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 3 Dec 2024 10:47:37 -0500 Subject: Add ability to use artifactory without uploading any artifacts at the end. * New option: --no-artifactory-upload * Implies --no-artifactory-build-info * Updated README.md --- include/core.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/core.h b/include/core.h index b8b047f..362ac8d 100644 --- a/include/core.h +++ b/include/core.h @@ -40,6 +40,7 @@ struct STASIS_GLOBAL { bool enable_docker; //!< Enable docker image builds bool enable_artifactory; //!< Enable artifactory uploads bool enable_artifactory_build_info; //!< Enable build info (best disabled for pure test runs) + bool enable_artifactory_upload; //!< Enable artifactory file upload (dry-run when false) bool enable_testing; //!< Enable package testing bool enable_overwrite; //!< Enable release file clobbering bool enable_rewrite_spec_stage_2; //!< Enable automatic @STR@ replacement in output files -- cgit