]> git.ipfire.org Git - pakfire.git/commitdiff
jobs: Use function to check if a flag is set
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 27 Mar 2025 10:32:56 +0000 (10:32 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 27 Mar 2025 10:32:56 +0000 (10:32 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/job.c

index d9764e5df19a5b0cbf757aa17d5eeb46be304842..78f4c9e2e22f0cc6a158d656a19eb71f8c6eee12 100644 (file)
@@ -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);