summaryrefslogtreecommitdiff
path: root/apt
diff options
context:
space:
mode:
authorMichael Vogt <egon@tas>2007-01-26 17:29:35 +0100
committerMichael Vogt <egon@tas>2007-01-26 17:29:35 +0100
commit4b7a231e14ff217094bf6f68f0523de2baa4cfab (patch)
treeaccf6b6a3101dd5a63c9d264c7e6f66d636608f0 /apt
parentb3e1b3ef5ae44ad5cb552a9d7dd29fb6773bd363 (diff)
parent4a741085e3895d83aa3b0a522123a923b0a64aa4 (diff)
downloadpython-apt-4b7a231e14ff217094bf6f68f0523de2baa4cfab.tar.gz
merged from the auto-mark branch
Diffstat (limited to 'apt')
-rw-r--r--apt/package.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/apt/package.py b/apt/package.py
index 0c451e4e..af5dd327 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -300,12 +300,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)