summaryrefslogtreecommitdiff
path: root/apt
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-10-19 17:40:03 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2011-10-19 17:40:03 +0200
commit2a802b7d35fb82864faded7bcd25e502a1ca9a9d (patch)
treef863686a5159227c95e7a83b421287c0be0292f1 /apt
parent8c24ad05afb705f7842cb2bc7e08450acbe49653 (diff)
parent3c35eb3da332cf30781dba78ed777b26934136ac (diff)
downloadpython-apt-2a802b7d35fb82864faded7bcd25e502a1ca9a9d.tar.gz
merged from debian/sid
Diffstat (limited to 'apt')
-rw-r--r--apt/package.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt/package.py b/apt/package.py
index dbc5b23e..4104f93e 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -973,8 +973,8 @@ class Package(object):
another package, and if no packages depend on it anymore, the package
is no longer required.
"""
- return self.is_installed and \
- self._pcache._depcache.is_garbage(self._pkg)
+ return ((self.is_installed or self.marked_install) and
+ self._pcache._depcache.is_garbage(self._pkg))
@property
def is_auto_installed(self):