From cb12be4893d8ac79dcbaa77e30cf61d69a4e859e Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 20 Sep 2010 10:30:20 +0200 Subject: fix return type of DebSize() and UsrSize(), thanks to Sebastian Heinlein, LP: #642936 --- debian/changelog | 2 ++ python/depcache.cc | 4 ++-- 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 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 -- cgit v1.2.3