From 38d978a82b10b18237fb55247c18cbc906cbd31b Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 24 Jun 2005 08:54:54 +0000 Subject: * support autoInst flag in depcache.MarkInstall() --- python/depcache.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/depcache.cc b/python/depcache.cc index cb2cd540..49049c4b 100644 --- a/python/depcache.cc +++ b/python/depcache.cc @@ -315,12 +315,12 @@ static PyObject *PkgDepCacheMarkInstall(PyObject *Self,PyObject *Args) pkgDepCache *depcache = GetCpp(Self); PyObject *PackageObj; - if (PyArg_ParseTuple(Args,"O!",&PackageType,&PackageObj) == 0) + char autoInst=1; + if (PyArg_ParseTuple(Args,"O!|b",&PackageType,&PackageObj, &autoInst) == 0) return 0; pkgCache::PkgIterator &Pkg = GetCpp(PackageObj); - depcache->MarkInstall(Pkg, true); - pkgDepCache::StateCache & State = (*depcache)[Pkg]; + depcache->MarkInstall(Pkg, autoInst); Py_INCREF(Py_None); return HandleErrors(Py_None); -- cgit v1.2.3