diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-08-20 23:14:19 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-08-20 23:14:19 +0200 |
| commit | c31fb6542e64a7eb279d0b246da4ea15dc4d6af3 (patch) | |
| tree | c127564a5e51154f58956a7767f140e2de7a09aa /apt/package.py | |
| parent | 6a094eb0c26f0997e271f6242654293809a4e4a1 (diff) | |
| download | python-apt-c31fb6542e64a7eb279d0b246da4ea15dc4d6af3.tar.gz | |
apt/package.py: Do not mark the package as manually installed on upgrade (Closes: #542699)
Diffstat (limited to 'apt/package.py')
| -rw-r--r-- | apt/package.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apt/package.py b/apt/package.py index 7322bb94..e33078d8 100644 --- a/apt/package.py +++ b/apt/package.py @@ -1064,7 +1064,8 @@ class Package(object): def markUpgrade(self): """Mark a package for upgrade.""" if self.isUpgradable: - self.markInstall() + fromUser = not self._pcache._depcache.IsAutoInstalled(self._pkg) + self.markInstall(fromUser=fromUser) else: # FIXME: we may want to throw a exception here sys.stderr.write(("MarkUpgrade() called on a non-upgrable pkg: " |
