Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Py_RETURN_NONE;
}
-static PyObject* Repo_get_config(RepoObject* self) {
- char* config = pakfire_repo_get_config(self->repo);
-
- if (config) {
- PyObject* obj = PyUnicode_FromString(config);
- free(config);
-
- return obj;
- }
-
- Py_RETURN_NONE;
-}
-
static PyObject* Repo__add_package(RepoObject* self, PyObject* args) {
const char* name;
const char* evr;
METH_VARARGS,
NULL,
},
- {
- "get_config",
- (PyCFunction)Repo_get_config,
- METH_NOARGS,
- NULL,
- },
{
"refresh",
(PyCFunction)Repo_refresh,