]> git.ipfire.org Git - pakfire.git/commitdiff
job: Permit to finish jobs without uploads
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Feb 2025 18:15:40 +0000 (18:15 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Feb 2025 18:15:40 +0000 (18:15 +0000)
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 <michael.tremer@ipfire.org>
src/pakfire/job.c

index 7e59ef0873ab485f89e77a543f160ef0d52a7576..6e28ff98fdf0e27799b83c136b2ba9283c4602a0 100644 (file)
@@ -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) {