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;
METH_VARARGS,
NULL
},
- {
- "refresh",
- (PyCFunction)Pakfire_refresh,
- METH_VARARGS,
- NULL,
- },
{
"repo_compose",
(PyCFunction)Pakfire_repo_compose,