RPM

Comment 10 for bug 638611

Revision history for this message
In , seth (seth-redhat-bugs) wrote :

This patch seems to work
--- a/python/header-py.c~ 2009-06-23 07:40:59.000000000 -0400
+++ b/python/header-py.c 2009-10-27 12:07:08.000000000 -0400
@@ -390,13 +390,13 @@
    if (count != 1 || forceArray) {
        metao = PyList_New(0);
        for (i = 0; i < count; i++) {
- o = PyInt_FromLong(((int *) data)[i]);
+ o = PyLong_FromUnsignedLong(((int *) data)[i]);
        PyList_Append(metao, o);
        Py_DECREF(o);
        }
        o = metao;
    } else {
- o = PyInt_FromLong(*((int *) data));
+ o = PyLong_FromUnsignedLong(*((int *) data));
    }
    break;

I've tested installs and queries and createrepo and all of them seem to return the right info.