diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-06-11 10:31:14 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-06-11 10:31:14 +0300 |
commit | 1ae76f69df0eacf8f7fc7aab6b920010a5dde25f (patch) | |
tree | a3b4fbe861d5eef61c55c2745a0be91e52865e2e /python | |
parent | 55d3bbd4b87ea7eec48cfa573bdac9001a8cc4da (diff) | |
download | rpm-1ae76f69df0eacf8f7fc7aab6b920010a5dde25f.tar.gz rpm-1ae76f69df0eacf8f7fc7aab6b920010a5dde25f.tar.bz2 rpm-1ae76f69df0eacf8f7fc7aab6b920010a5dde25f.zip |
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 ;)
Diffstat (limited to 'python')
-rw-r--r-- | python/rpmts-py.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |