diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-08-10 11:07:06 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-08-10 11:07:06 +0200 |
| commit | 30505be641ba127ef66b84619fc8a7dc9d7350f2 (patch) | |
| tree | 0537fcb41fc798528fa4d76dbbff2623de00967f /python | |
| parent | 5064019ed13dc0dfc33485e3fb4fac00a6deb5e5 (diff) | |
| download | python-apt-30505be641ba127ef66b84619fc8a7dc9d7350f2.tar.gz | |
* python/acquire.cc:
- return long long when calling TotalNeeded(), FetchNeeded() and
PartialPresent() from pkgAcquire(). This follows the change
in libapt.
Diffstat (limited to 'python')
| -rw-r--r-- | python/acquire.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/acquire.cc b/python/acquire.cc index 6f9a1412..ab90bbdd 100644 --- a/python/acquire.cc +++ b/python/acquire.cc @@ -259,15 +259,15 @@ static PyMethodDef PkgAcquireMethods[] = { #define fetcher (GetCpp<pkgAcquire*>(Self)) static PyObject *PkgAcquireGetTotalNeeded(PyObject *Self,void*) { - return Py_BuildValue("d", fetcher->TotalNeeded()); + return Py_BuildValue("L", fetcher->TotalNeeded()); } static PyObject *PkgAcquireGetFetchNeeded(PyObject *Self,void*) { - return Py_BuildValue("d", fetcher->FetchNeeded()); + return Py_BuildValue("L", fetcher->FetchNeeded()); } static PyObject *PkgAcquireGetPartialPresent(PyObject *Self,void*) { - return Py_BuildValue("d", fetcher->PartialPresent()); + return Py_BuildValue("L", fetcher->PartialPresent()); } #undef fetcher |
