From 1ae76f69df0eacf8f7fc7aab6b920010a5dde25f Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 11 Jun 2008 10:31:14 +0300 Subject: Make rpmps generic number field 64bit, rename getter method - rename the parameters + internal use to more generic "number" - rename ugly and dumb rpmProblemGetLong() to rpmProblemGetDiskNeed() and return rpm_loff_t - the number field is used for some other purposes too (whether dep problem is for installed package), work around this for now by just defining rpmProblemGetDiskNeed() result value as undefined on non-disk related problems ;) --- python/rpmts-py.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/rpmts-py.c b/python/rpmts-py.c index 422436b61..3e84a82f3 100644 --- a/python/rpmts-py.c +++ b/python/rpmts-py.c @@ -1020,7 +1020,7 @@ fprintf(stderr, "*** rpmts_Run(%p) ts %p ignore %x\n", s, s->ts, s->ignoreSet); PyObject * prob = Py_BuildValue("s(isN)", ps, rpmProblemGetType(p), rpmProblemGetStr(p), - PyLong_FromLongLong(rpmProblemGetLong(p))); + PyLong_FromLongLong(rpmProblemGetDiskNeed(p))); PyList_Append(list, prob); free(ps); Py_DECREF(prob); -- cgit v1.2.3