diff options
| author | Michael Vogt <egon@tas> | 2007-01-26 17:20:29 +0100 |
|---|---|---|
| committer | Michael Vogt <egon@tas> | 2007-01-26 17:20:29 +0100 |
| commit | 4a741085e3895d83aa3b0a522123a923b0a64aa4 (patch) | |
| tree | ad54f51004b284af9714fce9c680befd3542fdf8 /python | |
| parent | 5b3663b413e46ac6d4e8d9d394d1459859fd0eb1 (diff) | |
| download | python-apt-4a741085e3895d83aa3b0a522123a923b0a64aa4.tar.gz | |
* support "fromUser()" flag in apt.Package.markInstall() to make
setting the automatic install information available
Diffstat (limited to 'python')
| -rw-r--r-- | python/depcache.cc | 6 |
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); |
