From 562ca8fd32e654903b7cc6e1e562bff331310af2 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 6 Feb 2025 18:15:40 +0000 Subject: [PATCH] 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 --- src/pakfire/job.c | 9 --------- 1 file changed, 9 deletions(-) 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) { -- 2.39.5