summaryrefslogtreecommitdiff
path: root/python/depcache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/depcache.cc')
-rw-r--r--python/depcache.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/python/depcache.cc b/python/depcache.cc
index c78d0077..df56da61 100644
--- a/python/depcache.cc
+++ b/python/depcache.cc
@@ -149,21 +149,20 @@ static PyObject *PkgDepCacheCommit(PyObject *Self,PyObject *Args)
_system->UnLock();
pkgPackageManager::OrderResult Res = iprogress.Run(PM);
+ std::cout << "iprogress.Run() returned: " << (int)Res << std::endl;
+
//FIXME: return usefull values here
if (Res == pkgPackageManager::Failed || _error->PendingError() == true) {
- result = Py_BuildValue("b", false);
- return result;
+ return Py_BuildValue("b", false);
}
if (Res == pkgPackageManager::Completed) {
- result = Py_BuildValue("b", true);
- return result;
+ return Py_BuildValue("b", true);
}
// Reload the fetcher object and loop again for media swapping
Fetcher.Shutdown();
if (PM->GetArchives(&Fetcher,&List,&Recs) == false) {
- result = Py_BuildValue("b", false);
- return result;
+ return Py_BuildValue("b", false);
}
_system->Lock();
}