From: Michael Tremer Date: Tue, 19 Jul 2022 14:40:33 +0000 (+0000) Subject: _pakfire: Adjust flag to enable/disable ccache X-Git-Tag: 0.9.28~668 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47de614b91d8efed6552d1fec948edc782e9472f;p=pakfire.git _pakfire: Adjust flag to enable/disable ccache Signed-off-by: Michael Tremer --- diff --git a/src/_pakfire/pakfire.c b/src/_pakfire/pakfire.c index 02931ff96..134a06e2d 100644 --- a/src/_pakfire/pakfire.c +++ b/src/_pakfire/pakfire.c @@ -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)