From: Michael Tremer Date: Thu, 30 Jan 2025 15:57:41 +0000 (+0000) Subject: python: Drop Pakfire.refresh() X-Git-Tag: 0.9.30~253 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=352c1e3b1e6fbfc0cb761ce8ad52112abddbcba1;p=pakfire.git python: Drop Pakfire.refresh() Signed-off-by: Michael Tremer --- diff --git a/src/python/pakfire.c b/src/python/pakfire.c index c51d6db6..bfdb77e6 100644 --- a/src/python/pakfire.c +++ b/src/python/pakfire.c @@ -421,27 +421,6 @@ static PyObject* Pakfire_clean(PakfireObject* self) { Py_RETURN_NONE; } -static PyObject* Pakfire_refresh(PakfireObject* self, PyObject* args) { - int force = 0; - int r; - - if (!PyArg_ParseTuple(args, "|p", &force)) - return NULL; - - Py_BEGIN_ALLOW_THREADS - - r = pakfire_refresh(self->pakfire, force); - if (r) { - Py_BLOCK_THREADS - PyErr_SetFromErrno(PyExc_OSError); - return NULL; - } - - Py_END_ALLOW_THREADS - - Py_RETURN_NONE; -} - static PyObject* Pakfire_open(PakfireObject* self, PyObject* args) { struct pakfire_archive* archive = NULL; const char* path = NULL; @@ -575,12 +554,6 @@ static struct PyMethodDef Pakfire_methods[] = { METH_VARARGS, NULL }, - { - "refresh", - (PyCFunction)Pakfire_refresh, - METH_VARARGS, - NULL, - }, { "repo_compose", (PyCFunction)Pakfire_repo_compose,