]> git.ipfire.org Git - pakfire.git/commitdiff
build: Create a flag to mark locally run builds
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Jan 2025 14:52:23 +0000 (14:52 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Jan 2025 14:52:23 +0000 (14:52 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/cli/lib/build.c
src/pakfire/build.h

index cbd6aed9df16026bad1b13104de0cc7f16fb453f..405cd1efa22db0735706af35c333fc3b3d88f93a 100644 (file)
@@ -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
index 23df2e9cb364e2672ac891240a9ce983831c2754..4194ee48d5f4ad702576d5f6379b96862799faf5 100644 (file)
@@ -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,