]> git.ipfire.org Git - pakfire.git/commitdiff
python: Drop Pakfire.refresh()
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Jan 2025 15:57:41 +0000 (15:57 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Jan 2025 15:57:41 +0000 (15:57 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/pakfire.c

index c51d6db6f88730aa20250156ac9eda0e2e6b6d71..bfdb77e6e3503253f89e5766c8511be684b8b64a 100644 (file)
@@ -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,