diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-16 19:27:46 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-16 19:27:46 +0200 |
| commit | 7e5b2dee624fb0fb7a6536cfdc74d30eeca8ffbe (patch) | |
| tree | 5334f9fd7a01e66c8ebebe29ba8d49be25d3573a /python/progress.cc | |
| parent | c7e8d9705d8b3570c00ed072b0957beb4a47397e (diff) | |
| download | python-apt-7e5b2dee624fb0fb7a6536cfdc74d30eeca8ffbe.tar.gz | |
python/acquire.cc, python/progress.cc: More fixes.
Diffstat (limited to 'python/progress.cc')
| -rw-r--r-- | python/progress.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/progress.cc b/python/progress.cc index 18e038dd..1f17afdf 100644 --- a/python/progress.cc +++ b/python/progress.cc @@ -247,6 +247,11 @@ bool PyFetchProgress::Pulse(pkgAcquire * Owner) // set stats PyObject *o; + + + o = Py_BuildValue("d", FetchedBytes); + PyObject_SetAttrString(callbackInst, "fetched_bytes", o); + Py_DECREF(o); o = Py_BuildValue("d", CurrentCPS); if(PyObject_HasAttrString(callbackInst, "current_cps")) PyObject_SetAttrString(callbackInst, "current_cps", o); |
