]>
git.ipfire.org Git - pakfire.git/blob - src/util.c
6 PyObject
*version_compare(PyObject
*self
, PyObject
*args
) {
8 const char *evr1
, *evr2
;
10 if (!PyArg_ParseTuple(args
, "Oss", &pool
, &evr1
, &evr2
)) {
11 /* XXX raise exception */
15 int ret
= pool_evrcmp_str(pool
, evr1
, evr2
, EVRCMP_COMPARE
);
17 return Py_BuildValue("i", ret
);