diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-07-27 15:00:12 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-07-27 15:00:12 +0200 |
| commit | af398fcce8671bc864e4300c1b0bbeb07ab95aaf (patch) | |
| tree | e89efbe87083941ab7a220c3a9a93f0e9f6df05c /apt/package.py | |
| parent | 0b081c5451d6394618290cd9a5767d767d98b819 (diff) | |
| parent | 8d79b99c1a3338e31e8def858cee3209824ae8bf (diff) | |
| download | python-apt-af398fcce8671bc864e4300c1b0bbeb07ab95aaf.tar.gz | |
* merged with mainline
Diffstat (limited to 'apt/package.py')
| -rw-r--r-- | apt/package.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apt/package.py b/apt/package.py index dfb74789..c870c325 100644 --- a/apt/package.py +++ b/apt/package.py @@ -293,10 +293,12 @@ class Package(object): Fix.InstallProtect() Fix.Resolve() self._pcache.cachePostChange() - def markInstall(self, autoFix=True): - """ mark a package for install. Run the resolver if autoFix is set """ + def markInstall(self, autoFix=True, autoInst=True): + """ mark a package for install. Run the resolver if autoFix is set, + automatically install required dependencies if autoInst is set + """ self._pcache.cachePreChange() - self._depcache.MarkInstall(self._pkg) + self._depcache.MarkInstall(self._pkg, autoInst) # try to fix broken stuff if autoFix and self._depcache.BrokenCount > 0: fixer = apt_pkg.GetPkgProblemResolver(self._depcache) |
