diff options
| author | Michael Vogt <egon@bottom> | 2007-05-02 18:51:48 +0200 |
|---|---|---|
| committer | Michael Vogt <egon@bottom> | 2007-05-02 18:51:48 +0200 |
| commit | 7e7e01e96d57515f323e19127dc05f4b2b2d31cc (patch) | |
| tree | dcfb35abf5a80ceaf541c5df80bb6580efaaac0c /apt | |
| parent | e537ea9f6a1905c6ec4af01367851b053dfca40e (diff) | |
| parent | 4a741085e3895d83aa3b0a522123a923b0a64aa4 (diff) | |
| download | python-apt-7e7e01e96d57515f323e19127dc05f4b2b2d31cc.tar.gz | |
* merged from http://people.ubuntu.com/~mvo/bzr/python-apt/auto-mark/
Diffstat (limited to 'apt')
| -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 fb30209f..6644e139 100644 --- a/apt/package.py +++ b/apt/package.py @@ -365,12 +365,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) |
