diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-11-22 09:04:05 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-11-22 09:04:05 +0000 |
| commit | c26431eebbd6d9b90bba2498355e1874a15aba60 (patch) | |
| tree | 4eca34ae3fc50f1857191fdc56449e4f96d75ec6 /python/depcache.cc | |
| parent | a9d234dfe2ab0358d3e61a53645e4ee1d83e53cb (diff) | |
| download | python-apt-c26431eebbd6d9b90bba2498355e1874a15aba60.tar.gz | |
* less debug messages
Diffstat (limited to 'python/depcache.cc')
| -rw-r--r-- | python/depcache.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/depcache.cc b/python/depcache.cc index 6d5e9fcd..51c25080 100644 --- a/python/depcache.cc +++ b/python/depcache.cc @@ -160,16 +160,16 @@ static PyObject *PkgDepCacheCommit(PyObject *Self,PyObject *Args) //FIXME: make this more flexible, e.g. with a failedDl handler if(Failed) return Py_BuildValue("b", false); - _system->UnLock(); + _system->UnLock(true); 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) { - return Py_BuildValue("b", false); + return HandleErrors(Py_BuildValue("b", false)); } if (Res == pkgPackageManager::Completed) { + //std::cout << "iprogress.Run() returned Completed " << std::endl; return Py_BuildValue("b", true); } |
