summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog2
-rw-r--r--python/depcache.cc4
2 files changed, 4 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index 024a74b6..d930072c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,8 @@ python-apt (0.7.97.2) UNRELEASED; urgency=low
templates
* aptsources/distinfo.py, aptsources/distro.py:
- support non-official templates (like extras.ubuntu.com)
+ * fix return type of DebSize() and UsrSize(), thanks to
+ Sebastian Heinlein, LP: #642936
-- Michael Vogt <mvo@debian.org> Fri, 27 Aug 2010 11:22:23 +0200
diff --git a/python/depcache.cc b/python/depcache.cc
index cd098f2f..b7294644 100644
--- a/python/depcache.cc
+++ b/python/depcache.cc
@@ -650,10 +650,10 @@ static PyObject *PkgDepCacheGetBrokenCount(PyObject *Self,void*) {
return Py_BuildValue("l", depcache->BrokenCount());
}
static PyObject *PkgDepCacheGetUsrSize(PyObject *Self,void*) {
- return Py_BuildValue("d", depcache->UsrSize());
+ return Py_BuildValue("L", depcache->UsrSize());
}
static PyObject *PkgDepCacheGetDebSize(PyObject *Self,void*) {
- return Py_BuildValue("d", depcache->DebSize());
+ return Py_BuildValue("L", depcache->DebSize());
}
#undef depcache