From: Michael Tremer Date: Tue, 15 Apr 2025 17:05:32 +0000 (+0000) Subject: build: Log a better message when a build has been interrupted X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=34bc8619ec519661e2da7b0f6ba8c2474a10f6a1;p=pakfire.git build: Log a better message when a build has been interrupted Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/build.c b/src/pakfire/build.c index 1d1dfe51..6fca0b7e 100644 --- a/src/pakfire/build.c +++ b/src/pakfire/build.c @@ -1415,8 +1415,15 @@ static int pakfire_build_stage(struct pakfire_build* build, // Run the script r = pakfire_jail_exec_script(build->jail, script, strlen(script), NULL, env, NULL, NULL, pakfire_build_output_callback, build); - if (r) - ERROR(build->ctx, "Build stage '%s' failed with status %d\n", stage, r); + switch (r) { + case 130: + ERROR(build->ctx, "The build has been interrupted\n"); + break; + + default: + ERROR(build->ctx, "Build stage '%s' failed with status %d\n", stage, r); + break; + } ERROR: if (env)