diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-10-19 17:40:03 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-10-19 17:40:03 +0200 |
| commit | 2a802b7d35fb82864faded7bcd25e502a1ca9a9d (patch) | |
| tree | f863686a5159227c95e7a83b421287c0be0292f1 /apt | |
| parent | 8c24ad05afb705f7842cb2bc7e08450acbe49653 (diff) | |
| parent | 3c35eb3da332cf30781dba78ed777b26934136ac (diff) | |
| download | python-apt-2a802b7d35fb82864faded7bcd25e502a1ca9a9d.tar.gz | |
merged from debian/sid
Diffstat (limited to 'apt')
| -rw-r--r-- | apt/package.py | 4 |
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): |
