summaryrefslogtreecommitdiff
path: root/python/progress.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/progress.cc')
-rw-r--r--python/progress.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/progress.cc b/python/progress.cc
index d0c97839..f00058c9 100644
--- a/python/progress.cc
+++ b/python/progress.cc
@@ -299,6 +299,10 @@ pkgPackageManager::OrderResult PyInstallProgress::Run(pkgPackageManager *pm)
void PyCdromProgress::Update(string text, int current)
{
PyObject *arglist = Py_BuildValue("(si)", text.c_str(), current);
+
+ PyObject *o = Py_BuildValue("i", totalSteps);
+ PyObject_SetAttrString(callbackInst, "totalSteps", o);
+
RunSimpleCallback("update", arglist);
}