From: Michael Tremer Date: Thu, 6 Feb 2025 18:15:40 +0000 (+0000) Subject: job: Permit to finish jobs without uploads X-Git-Tag: 0.9.30~111 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=562ca8fd32e654903b7cc6e1e562bff331310af2;p=pakfire.git job: Permit to finish jobs without uploads This is even called when the build has failed in which case we don't have any packages that we can use here. Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/job.c b/src/pakfire/job.c index 7e59ef08..6e28ff98 100644 --- a/src/pakfire/job.c +++ b/src/pakfire/job.c @@ -301,15 +301,6 @@ static int pakfire_job_finished(struct pakfire_job* job, int status) { DEBUG(job->ctx, "Job %s has finished with status %d\n", job->id, status); - // Check if we have any uploads - except for test builds - if (!(job->flags & PAKFIRE_JOB_TEST)) { - if (!job->uploads) { - ERROR(job->ctx, "There are no uploads\n"); - r = -EINVAL; - goto ERROR; - } - } - // Fetch the filename of the log file filename = pakfire_log_file_filename(job->log.file); if (!filename) {