The rpmmodule.c has (since several versions of rpm) a wrongly defined method table. E.g. {"verifyFile", (PyCFunction) hdrVerifyFile, 1 }, does not work, becaus "1" means METH_VARARGS and in thos case the argument is a python tuple. The associated function expects an interger, however: static PyObject * hdrVerifyFile(hdrObject * s, PyObject * args) { if (!PyInt_Check(args)) { PyErr_SetString(PyExc_TypeError, "integer expected"); return NULL; } This applies to several functions in rpmmodule.c. making these functions effectivly unusable.
hdrVerifyFile is now removed from the bindings. Will be resurrrected as a binding to rpmcliVerify somwhen. Change will be in rpm-4.1-0.76 when built.
*** Bug 58583 has been marked as a duplicate of this bug. ***