summaryrefslogtreecommitdiff
path: root/apt/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'apt/package.py')
-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):