From: Michael Tremer Date: Sat, 30 Jun 2012 10:19:52 +0000 (+0200) Subject: Fix the download sizes. X-Git-Tag: 0.9.23~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f1cfbffe3df6ed137c522072adb7ef872592cba4;p=pakfire.git Fix the download sizes. Newer versions of libsolv require an unsigned long here. --- diff --git a/python/src/solvable.c b/python/src/solvable.c index 21ad75813..1198df389 100644 --- a/python/src/solvable.c +++ b/python/src/solvable.c @@ -492,10 +492,10 @@ PyObject *Solvable_set_downloadsize(SolvableObject *self, PyObject *args) { PyObject *Solvable_get_downloadsize(SolvableObject *self) { Solvable *solv = pool_id2solvable(self->_pool, self->_id); - unsigned int downloadsize = repo_lookup_num(solv->repo, self->_id, + unsigned long long downloadsize = repo_lookup_num(solv->repo, self->_id, SOLVABLE_DOWNLOADSIZE, 0); - return Py_BuildValue("i", downloadsize); + return Py_BuildValue("K", downloadsize / 1024); } PyObject *Solvable_set_installsize(SolvableObject *self, PyObject *args) {