diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-09-20 10:43:13 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-09-20 10:43:13 +0200 |
| commit | d4a80226ae9c64284a8647d450e3ed17ab09a371 (patch) | |
| tree | 2682cd373631f0acea7b997de79c4006e0d1bc84 | |
| parent | d806cac23d66b55f4fc2e5e9e58ab0859301b595 (diff) | |
| parent | cb12be4893d8ac79dcbaa77e30cf61d69a4e859e (diff) | |
| download | python-apt-d4a80226ae9c64284a8647d450e3ed17ab09a371.tar.gz | |
fix return type of DebSize() and UsrSize(), thanks to
Sebastian Heinlein, LP: #642936
| -rw-r--r-- | debian/changelog | 7 | ||||
| -rw-r--r-- | python/depcache.cc | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog index b56f1534..37b5cbc4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +python-apt (0.7.96.1ubuntu11) unstable; urgency=low + + * fix return type of DebSize() and UsrSize(), thanks to + Sebastian Heinlein, LP: #642936 + + -- Michael Vogt <michael.vogt@ubuntu.com> Mon, 20 Sep 2010 10:34:33 +0200 + python-apt (0.7.96.1ubuntu10) maverick; urgency=low * data/templates/Ubuntu.info.in: 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 |
