Adjust python callback for amount+total type change
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 27 Jun 2008 10:02:23 +0000 (13:02 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 27 Jun 2008 10:02:23 +0000 (13:02 +0300)
python/rpmts-py.c

index 3e84a82..38d897d 100644 (file)
@@ -860,7 +860,7 @@ rpmtsCallback(const void * hd, const rpmCallbackType what,
 
     PyEval_RestoreThread(cbInfo->_save);
 
-    args = Py_BuildValue("(illOO)", what, amount, total, pkgObj, cbInfo->data);
+    args = Py_BuildValue("(iLLOO)", what, amount, total, pkgObj, cbInfo->data);
     result = PyEval_CallObject(cbInfo->cb, args);
     Py_DECREF(args);
     Py_DECREF(pkgObj);