diff options
| author | Michael Vogt <egon@bottom> | 2007-06-10 19:56:48 +0200 |
|---|---|---|
| committer | Michael Vogt <egon@bottom> | 2007-06-10 19:56:48 +0200 |
| commit | e9a4095f8b5f4da8f70915b178c2a37b2b009e6d (patch) | |
| tree | ea2bf7ac821e9769206744d8f0830ca775be2e08 /apt/package.py | |
| parent | 3b02b5265d12a39a5ee459f15f9568208db7fc6d (diff) | |
| parent | 4a741085e3895d83aa3b0a522123a923b0a64aa4 (diff) | |
| download | python-apt-e9a4095f8b5f4da8f70915b178c2a37b2b009e6d.tar.gz | |
* merged automaitc removal of unused dependencies
branch
* update build-depends
Diffstat (limited to 'apt/package.py')
| -rw-r--r-- | apt/package.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apt/package.py b/apt/package.py index 13481be3..232edc70 100644 --- a/apt/package.py +++ b/apt/package.py @@ -358,12 +358,13 @@ class Package(object): Fix.InstallProtect() Fix.Resolve() self._pcache.cachePostChange() - def markInstall(self, autoFix=True, autoInst=True): + def markInstall(self, autoFix=True, autoInst=True, fromUser=True): """ mark a package for install. Run the resolver if autoFix is set, automatically install required dependencies if autoInst is set + record it as automatically installed when fromuser is set to false """ self._pcache.cachePreChange() - self._depcache.MarkInstall(self._pkg, autoInst) + self._depcache.MarkInstall(self._pkg, autoInst, fromUser) # try to fix broken stuff if autoFix and self._depcache.BrokenCount > 0: fixer = apt_pkg.GetPkgProblemResolver(self._depcache) |
