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.
This patch seems to work header- py.c~ 2009-06-23 07:40:59.000000000 -0400 header- py.c 2009-10-27 12:07:08.000000000 -0400 ((int *) data)[i]); FromUnsignedLon g(((int *) data)[i]);
PyList_ Append( metao, o);
Py_DECREF( o); *((int *) data)); FromUnsignedLon g(*((int *) data));
--- a/python/
+++ b/python/
@@ -390,13 +390,13 @@
if (count != 1 || forceArray) {
metao = PyList_New(0);
for (i = 0; i < count; i++) {
- o = PyInt_FromLong(
+ o = PyLong_
}
o = metao;
} else {
- o = PyInt_FromLong(
+ o = PyLong_
}
break;
I've tested installs and queries and createrepo and all of them seem to return the right info.