diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-06-15 08:59:04 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-06-15 08:59:04 +0200 |
| commit | 3b12e19d8a19ae319646cc2a97c36e92cf65a1d5 (patch) | |
| tree | f7540cb6117845cb1d25ad4c962e62b50429fbea /apt | |
| parent | 0bb531dbcf27b40861467b831b120fc8b257e8ff (diff) | |
| download | python-apt-3b12e19d8a19ae319646cc2a97c36e92cf65a1d5.tar.gz | |
* apt/packages.py:
- add autoInst option
Diffstat (limited to 'apt')
| -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 7297a1bb..0d1145ea 100644 --- a/apt/package.py +++ b/apt/package.py @@ -290,10 +290,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) |
