summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMichael Vogt <egon@tas>2007-01-26 17:29:35 +0100
committerMichael Vogt <egon@tas>2007-01-26 17:29:35 +0100
commit4b7a231e14ff217094bf6f68f0523de2baa4cfab (patch)
treeaccf6b6a3101dd5a63c9d264c7e6f66d636608f0 /python
parentb3e1b3ef5ae44ad5cb552a9d7dd29fb6773bd363 (diff)
parent4a741085e3895d83aa3b0a522123a923b0a64aa4 (diff)
downloadpython-apt-4b7a231e14ff217094bf6f68f0523de2baa4cfab.tar.gz
merged from the auto-mark branch
Diffstat (limited to 'python')
-rw-r--r--python/depcache.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/depcache.cc b/python/depcache.cc
index 159a7103..71e6a2e6 100644
--- a/python/depcache.cc
+++ b/python/depcache.cc
@@ -346,11 +346,13 @@ static PyObject *PkgDepCacheMarkInstall(PyObject *Self,PyObject *Args)
PyObject *PackageObj;
char autoInst=1;
- if (PyArg_ParseTuple(Args,"O!|b",&PackageType,&PackageObj, &autoInst) == 0)
+ char fromUser=1;
+ if (PyArg_ParseTuple(Args,"O!|bb",&PackageType,&PackageObj,
+ &autoInst, &fromUser) == 0)
return 0;
pkgCache::PkgIterator &Pkg = GetCpp<pkgCache::PkgIterator>(PackageObj);
- depcache->MarkInstall(Pkg, autoInst);
+ depcache->MarkInstall(Pkg, autoInst, 0, fromUser);
Py_INCREF(Py_None);
return HandleErrors(Py_None);