Py_RETURN_NONE;
}
+static PyObject* Repo_scan(RepoObject* self, PyObject* args) {
+ int flags = 0;
+
+ if (!PyArg_ParseTuple(args, "|i", &flags))
+ return NULL;
+
+ int r = pakfire_repo_scan(self->repo, flags);
+ if (r) {
+ PyErr_SetFromErrno(PyExc_OSError);
+ return NULL;
+ }
+
+ Py_RETURN_NONE;
+}
+
static PyObject* Repo_enter(RepoObject* self) {
Py_INCREF(self);
METH_VARARGS|METH_KEYWORDS,
NULL,
},
+ {
+ "scan",
+ (PyCFunction)Repo_scan,
+ METH_VARARGS,
+ NULL
+ },
{
"write_solv",
(PyCFunction)Repo_write_solv,