aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2024-12-07 19:53:44 -0500
committerGitHub <noreply@github.com>2024-12-07 19:53:44 -0500
commit456c5a481a7dabb53434a696488ac6eecb962d5b (patch)
tree8f4743a4cfdad61f9aeac0dffce050e5bd9eef1d /include
parentbdadebfceffad22179b33948113b2bf82f02c1f7 (diff)
parent4c403d1f1318a163b017605c2af6d1a14c579f99 (diff)
downloadstasis-456c5a481a7dabb53434a696488ac6eecb962d5b.tar.gz
Merge pull request #74 from jhunkeler/with-indexer-tlc
Combined: indexer-tlc and clone-existing-directory
Diffstat (limited to 'include')
-rw-r--r--include/core.h1
-rw-r--r--include/delivery.h12
-rw-r--r--include/utils.h5
3 files changed, 18 insertions, 0 deletions
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
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
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