return PyUnicode_FromString(arch);
}
+static PyObject* _pakfire_set_log_level(PyObject* self, PyObject* args) {
+ int level = 0;
+
+ if (!PyArg_ParseTuple(args, "i", &level))
+ return NULL;
+
+ // Set the log level
+ pakfire_ctx_set_log_level(pakfire_ctx, level);
+
+ Py_RETURN_NONE;
+}
+
static PyObject* _pakfire_supported_arches(void) {
int r;
static PyMethodDef pakfireModuleMethods[] = {
{"native_arch", (PyCFunction)_pakfire_native_arch, METH_NOARGS, NULL },
+ {
+ "set_log_level",
+ (PyCFunction)_pakfire_set_log_level,
+ METH_VARARGS,
+ NULL,
+ },
{"supported_arches", (PyCFunction)_pakfire_supported_arches, METH_NOARGS, NULL },
{
"version_compare",