summaryrefslogtreecommitdiff
path: root/python/depcache.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-01-09 11:48:16 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2006-01-09 11:48:16 +0000
commit1b303cad60722bb73805c2b6ae3eb896a495fde2 (patch)
tree552424e40cf9f5acbd95732f65d884d2ef871e67 /python/depcache.cc
parent2ebdc239bc9fd606bb748abd1d7ad49bea9669a3 (diff)
downloadpython-apt-1b303cad60722bb73805c2b6ae3eb896a495fde2.tar.gz
* fix broken returns a usefull value now
Diffstat (limited to 'python/depcache.cc')
-rw-r--r--python/depcache.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/python/depcache.cc b/python/depcache.cc
index 0d2a16b5..e8140e2b 100644
--- a/python/depcache.cc
+++ b/python/depcache.cc
@@ -279,14 +279,15 @@ static PyObject *PkgDepCacheReadPinFile(PyObject *Self,PyObject *Args)
static PyObject *PkgDepCacheFixBroken(PyObject *Self,PyObject *Args)
{
pkgDepCache *depcache = GetCpp<pkgDepCache *>(Self);
-
+
+ bool res=true;
if (PyArg_ParseTuple(Args,"") == 0)
return 0;
- pkgFixBroken(*depcache);
+ res &=pkgFixBroken(*depcache);
+ res &=pkgMinimizeUpgrade(*depcache);
- Py_INCREF(Py_None);
- return HandleErrors(Py_None);
+ return HandleErrors(Py_BuildValue("b",res));
}