From 1b303cad60722bb73805c2b6ae3eb896a495fde2 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 9 Jan 2006 11:48:16 +0000 Subject: * fix broken returns a usefull value now --- python/depcache.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'python/depcache.cc') 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(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)); } -- cgit v1.2.3