summaryrefslogtreecommitdiff
path: root/apt/package.py
diff options
context:
space:
mode:
authorMichael Vogt <egon@tas>2007-01-26 17:20:29 +0100
committerMichael Vogt <egon@tas>2007-01-26 17:20:29 +0100
commit4a741085e3895d83aa3b0a522123a923b0a64aa4 (patch)
treead54f51004b284af9714fce9c680befd3542fdf8 /apt/package.py
parent5b3663b413e46ac6d4e8d9d394d1459859fd0eb1 (diff)
downloadpython-apt-4a741085e3895d83aa3b0a522123a923b0a64aa4.tar.gz
* support "fromUser()" flag in apt.Package.markInstall() to make
setting the automatic install information available
Diffstat (limited to 'apt/package.py')
-rw-r--r--apt/package.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/apt/package.py b/apt/package.py
index 0d1145ea..f67ad6ce 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -290,12 +290,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)