]> git.ipfire.org Git - pakfire.git/commitdiff
_pakfire: Adjust flag to enable/disable ccache
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 19 Jul 2022 14:40:33 +0000 (14:40 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 19 Jul 2022 14:40:33 +0000 (14:40 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/_pakfire/pakfire.c

index 02931ff9611cf45becaa7529f4470f3e71d55884..134a06e2d70cf9bfa85eedb6a42485d1e9e396b3 100644 (file)
@@ -142,7 +142,7 @@ static int Pakfire_init(PakfireObject* self, PyObject* args, PyObject* kwds) {
                "offline",
                "conf",
                "build",
-               "enable_ccache",
+               "disable_ccache",
                "disable_snapshot",
                "confirm_callback",
                NULL,
@@ -153,12 +153,12 @@ static int Pakfire_init(PakfireObject* self, PyObject* args, PyObject* kwds) {
        int interactive = 0;
        int offline = 0;
        int build = 0;
-       int enable_ccache = 1;
+       int disable_ccache = 1;
        int disable_snapshot = 1;
 
        if (!PyArg_ParseTupleAndKeywords(args, kwds, "|zzOppzpppO", kwlist,
                        &path, &arch, &self->callbacks.log, &interactive, &offline, &conf, &build,
-                       &enable_ccache, &disable_snapshot, &self->callbacks.confirm))
+                       &disable_ccache, &disable_snapshot, &self->callbacks.confirm))
                return -1;
 
        // Check if log callback is callable
@@ -187,7 +187,7 @@ static int Pakfire_init(PakfireObject* self, PyObject* args, PyObject* kwds) {
        if (build) {
                flags |= PAKFIRE_FLAGS_BUILD;
 
-               if (!enable_ccache)
+               if (disable_ccache)
                        flags |= PAKFIRE_FLAGS_DISABLE_CCACHE;
 
                if (disable_snapshot)