summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-06-24 08:54:54 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-06-24 08:54:54 +0000
commit38d978a82b10b18237fb55247c18cbc906cbd31b (patch)
treec846c72d79f5e7f4c6c09deadff135a59d19e146
parent4b1cecbad29f9661a75d71559fce0d5d13b74032 (diff)
downloadpython-apt-38d978a82b10b18237fb55247c18cbc906cbd31b.tar.gz
* support autoInst flag in depcache.MarkInstall()
-rw-r--r--debian/changelog2
-rw-r--r--python/depcache.cc6
2 files changed, 5 insertions, 3 deletions
diff --git a/debian/changelog b/debian/changelog
index 6a176502..b6f07320 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,8 @@ python-apt (0.6.13) breezy; urgency=low
* Cache.GetChanges() added
* FilteredCache() improvements
* added "connect()" to {Pre,Post}CacheChange
+ * support for the PkgProblemResolver
+ * added tests/ directory with various tests for the code
-- Michael Vogt <michael.vogt@ubuntu.com> Wed, 1 Jun 2005 14:57:57 +0200
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<pkgDepCache *>(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<pkgCache::PkgIterator>(PackageObj);
- depcache->MarkInstall(Pkg, true);
- pkgDepCache::StateCache & State = (*depcache)[Pkg];
+ depcache->MarkInstall(Pkg, autoInst);
Py_INCREF(Py_None);
return HandleErrors(Py_None);