summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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));
}