From: Michael Tremer Date: Thu, 30 Jan 2025 14:52:23 +0000 (+0000) Subject: build: Create a flag to mark locally run builds X-Git-Tag: 0.9.30~260 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e68f7a805ef06840d9129a9568b3b346abb6628;p=pakfire.git build: Create a flag to mark locally run builds Signed-off-by: Michael Tremer --- diff --git a/src/cli/lib/build.c b/src/cli/lib/build.c index cbd6aed9..405cd1ef 100644 --- a/src/cli/lib/build.c +++ b/src/cli/lib/build.c @@ -208,7 +208,7 @@ int cli_build(void* data, int argc, char* argv[]) { BUILD_ENABLE_TESTS, }; struct pakfire_build* build = NULL; - int flags = 0; + int flags = PAKFIRE_BUILD_LOCAL; int r; // Parse the command line diff --git a/src/pakfire/build.h b/src/pakfire/build.h index 23df2e9c..4194ee48 100644 --- a/src/pakfire/build.h +++ b/src/pakfire/build.h @@ -32,6 +32,7 @@ enum pakfire_build_flags { PAKFIRE_BUILD_INTERACTIVE = (1 << 1), PAKFIRE_BUILD_DISABLE_CCACHE = (1 << 2), PAKFIRE_BUILD_DISABLE_TESTS = (1 << 3), + PAKFIRE_BUILD_LOCAL = (1 << 4), }; typedef int (*pakfire_build_result_callback)(struct pakfire_ctx* ctx, struct pakfire* pakfire,