From: Michael Tremer Date: Thu, 27 Mar 2025 10:32:56 +0000 (+0000) Subject: jobs: Use function to check if a flag is set X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=365d181b7649860a42c377a0758f6d0049964a3d;p=pakfire.git jobs: Use function to check if a flag is set Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/job.c b/src/pakfire/job.c index d9764e5d..78f4c9e2 100644 --- a/src/pakfire/job.c +++ b/src/pakfire/job.c @@ -658,7 +658,7 @@ static int pakfire_job_child(struct pakfire_job* job) { } // Disable the ccache - if (!(job->flags & PAKFIRE_JOB_CCACHE)) + if (!pakfire_job_has_flag(job, PAKFIRE_JOB_CCACHE)) build_flags |= PAKFIRE_BUILD_DISABLE_CCACHE; // Create a new build environment @@ -670,7 +670,7 @@ static int pakfire_job_child(struct pakfire_job* job) { } // Set the ccache path (if set) - if (job->flags & PAKFIRE_JOB_CCACHE) { + if (pakfire_job_has_flag(job, PAKFIRE_JOB_CCACHE)) { if (*job->ccache_path) { // XXX THIS NEEDS TO BE PREFIXED WITH THE BASE PATH r = pakfire_build_set_ccache_path(build, job->ccache_path);