summaryrefslogtreecommitdiff
path: root/python/acquire-item.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-09-24 21:23:29 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-09-24 21:23:29 +0200
commiteafb17c880c643b7e9223e673e51d7ce5a10cef5 (patch)
tree129c0a675c98f286d06caba47c9766d04383cc03 /python/acquire-item.cc
parentba81885de8c079e096d19e301c972426fc3e7366 (diff)
parent9c9e4973bc5051a75b8b6c4f94be20fef5e881df (diff)
downloadpython-apt-eafb17c880c643b7e9223e673e51d7ce5a10cef5.tar.gz
* merge fix from Steven Chamberlain <steven@pyro.eu.org> for
crash in unattended-upgrades, many many thanks (closes: #596408) * python/acquire-item.cc: - fix two more int -> long long change to follow the changes from libapt
Diffstat (limited to 'python/acquire-item.cc')
-rw-r--r--python/acquire-item.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/acquire-item.cc b/python/acquire-item.cc
index 4b7dc34d..377b077a 100644
--- a/python/acquire-item.cc
+++ b/python/acquire-item.cc
@@ -65,7 +65,7 @@ static PyObject *acquireitem_get_error_text(PyObject *self, void *closure)
static PyObject *acquireitem_get_filesize(PyObject *self, void *closure)
{
pkgAcquire::Item *item = acquireitem_tocpp(self);
- return item ? Py_BuildValue("i", item->FileSize) : 0;
+ return item ? Py_BuildValue("K", item->FileSize) : 0;
}
static PyObject *acquireitem_get_id(PyObject *self, void *closure)
@@ -95,7 +95,7 @@ static PyObject *acquireitem_get_local(PyObject *self, void *closure)
static PyObject *acquireitem_get_partialsize(PyObject *self, void *closure)
{
pkgAcquire::Item *item = acquireitem_tocpp(self);
- return item ? Py_BuildValue("i", item->PartialSize) : 0;
+ return item ? Py_BuildValue("K", item->PartialSize) : 0;
}
static PyObject *acquireitem_get_status(PyObject *self, void *closure)
@@ -162,7 +162,7 @@ static PyObject *acquireitem_repr(PyObject *Self)
return 0;
return PyString_FromFormat("<%s object: "
"Status: %i Complete: %i Local: %i IsTrusted: %i "
- "FileSize: %lu DestFile:'%s' "
+ "FileSize: %llu DestFile:'%s' "
"DescURI: '%s' ID:%lu ErrorText: '%s'>",
Self->ob_type->tp_name,
Itm->Status, Itm->Complete, Itm->Local, Itm->IsTrusted(),