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 | |
| 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.
| -rw-r--r-- | debian/changelog | 4 | ||||
| -rw-r--r-- | python/acquire.cc | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/debian/changelog b/debian/changelog index 3906c485..761742ca 100644 --- a/debian/changelog +++ b/debian/changelog @@ -17,6 +17,10 @@ python-apt (0.7.97) UNRELEASED; urgency=low - add binding for the "dump()" method to configruation objects * apt/debfile.py: - fix crash in DscFile handling and add regression test + * python/acquire.cc: + - return long long when calling TotalNeeded(), FetchNeeded() and + PartialPresent() from pkgAcquire(). This follows the change + in libapt. -- Julian Andres Klode <jak@debian.org> Fri, 23 Jul 2010 16:14:39 +0200 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 |
