if (r < 0)
goto ERROR;
+ // Let the builder know this is finished
+ r = pakfire_builder_job_finished(job->builder, job);
+
ERROR:
if (xfer)
pakfire_xfer_unref(xfer);
break;
}
- // Let the builder know this is finished
- return pakfire_builder_job_finished(job->builder, job);
+ // Signal that the job has finished
+ return pakfire_job_finished(job, si->si_status);
}
static int pakfire_job_send_log(struct pakfire_job* job, int priority, const char* line, size_t length) {
struct pakfire_ctx* ctx = NULL;
struct pakfire_build* build = NULL;
int build_flags = 0;
- int status;
int r;
// Fetch our PID
}
// Run the build
- status = pakfire_build_exec(build, job->pkg, pakfire_job_result, job);
-
- // Signal that the job has finished
- r = pakfire_job_finished(job, status);
- if (r < 0)
- goto ERROR;
+ r = pakfire_build_exec(build, job->pkg, pakfire_job_result, job);
ERROR:
if (build)