]> git.ipfire.org Git - pakfire.git/commitdiff
_pakfire: Drop version_compare
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 5 Mar 2021 11:20:26 +0000 (11:20 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 5 Mar 2021 11:20:26 +0000 (11:20 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/_pakfire/_pakfiremodule.c
src/_pakfire/util.c
src/_pakfire/util.h

index 97fb5f9d483bc04817568c0f8c68e4e039986054..f823a2a25f5c02e966aceaa5ae77e416d738e5ee 100644 (file)
@@ -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)
 
 # ------------------------------------------------------------------------------
 
index 991b56801acbab6000ef715c5c44858b0f6062ee..482bea10c57994e536ccbe3f8813c47aed5fd84a 100644 (file)
@@ -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 },
index 2be986b7cb3dcb456b0202eaeb121283d121926e..3c3c0464f7a14630284ccc4cef90f0c1d83bbacd 100644 (file)
 #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();
 
index c21a2c2fa64830f7df084e63b275406e2ca88bbb..0a0172358a5dc11ada95185a719519c46b047774 100644 (file)
@@ -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);