From: Michael Tremer Date: Fri, 5 Mar 2021 11:20:26 +0000 (+0000) Subject: _pakfire: Drop version_compare X-Git-Tag: 0.9.28~1285^2~631 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ac009a70f97e927f6be57a2f2637382383d0496;p=pakfire.git _pakfire: Drop version_compare Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index 97fb5f9d4..f823a2a25 100644 --- a/Makefile.am +++ b/Makefile.am @@ -211,7 +211,6 @@ _pakfire_la_CFLAGS = \ $(AM_CFLAGS) \ $(PYTHON_DEVEL_CFLAGS) \ $(CAP_CFLAGS) \ - $(SOLV_CFLAGS) \ -Wno-cast-function-type _pakfire_la_LDFLAGS = \ @@ -223,8 +222,7 @@ _pakfire_la_LDFLAGS = \ _pakfire_la_LIBADD = \ $(PYTHON_DEVEL_LIBS) \ $(PAKFIRE_LIBS) \ - $(CAP_LIBS) \ - $(SOLV_LIBS) + $(CAP_LIBS) # ------------------------------------------------------------------------------ diff --git a/src/_pakfire/_pakfiremodule.c b/src/_pakfire/_pakfiremodule.c index 991b56801..482bea10c 100644 --- a/src/_pakfire/_pakfiremodule.c +++ b/src/_pakfire/_pakfiremodule.c @@ -114,7 +114,6 @@ static PyObject* _pakfire_umount(PyObject* self, PyObject* args) { static PyMethodDef pakfireModuleMethods[] = { {"performance_index", (PyCFunction)performance_index, METH_VARARGS, NULL}, - {"version_compare", (PyCFunction)version_compare, METH_VARARGS, NULL}, {"get_capabilities", (PyCFunction)get_capabilities, METH_VARARGS, NULL}, {"native_arch", (PyCFunction)_pakfire_native_arch, METH_NOARGS, NULL }, {"arch_supported_by_host", (PyCFunction)_pakfire_arch_supported_by_host, METH_VARARGS, NULL }, diff --git a/src/_pakfire/util.c b/src/_pakfire/util.c index 2be986b7c..3c3c0464f 100644 --- a/src/_pakfire/util.c +++ b/src/_pakfire/util.c @@ -32,20 +32,6 @@ #include "package.h" #include "util.h" -PyObject *version_compare(PyObject *self, PyObject *args) { - Pool *pool; - const char *evr1, *evr2; - - if (!PyArg_ParseTuple(args, "Oss", &pool, &evr1, &evr2)) { - /* XXX raise exception */ - return NULL; - } - - int ret = pool_evrcmp_str(pool, evr1, evr2, EVRCMP_COMPARE); - - return Py_BuildValue("i", ret); -} - static unsigned long fibonnacci(const clock_t* deadline) { clock_t now = clock(); diff --git a/src/_pakfire/util.h b/src/_pakfire/util.h index c21a2c2fa..0a0172358 100644 --- a/src/_pakfire/util.h +++ b/src/_pakfire/util.h @@ -28,7 +28,6 @@ #include "pakfire.h" -extern PyObject *version_compare(PyObject *self, PyObject *args); extern PyObject* performance_index(PyObject* self, PyObject* args); PyObject* PyList_FromPackageList(PakfirePackageList packagelist);