diff options
Diffstat (limited to 'python/depcache.cc')
| -rw-r--r-- | python/depcache.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/python/depcache.cc b/python/depcache.cc index 2a57a41a..89974358 100644 --- a/python/depcache.cc +++ b/python/depcache.cc @@ -109,6 +109,9 @@ static PyObject *PkgDepCacheCommit(PyObject *Self,PyObject *Args) std::cout << "PM created" << std::endl; + PyInstallProgress iprogress; + iprogress.setCallbackInst(pyInstallProgressInst); + // Run it while (1) { @@ -152,7 +155,9 @@ static PyObject *PkgDepCacheCommit(PyObject *Self,PyObject *Args) #endif _system->UnLock(); - pkgPackageManager::OrderResult Res = PM->DoInstall(); + + pkgPackageManager::OrderResult Res = iprogress.Run(PM); + //FIXME: return usefull values here if (Res == pkgPackageManager::Failed || _error->PendingError() == true) return Py_None/*false;*/; if (Res == pkgPackageManager::Completed) |
