diff options
| author | Sebastian Heinlein <devel@glatzor.de> | 2009-08-21 15:26:31 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-08-21 15:26:31 +0200 |
| commit | a65009779237610d6be290222aeb69af8b19ad34 (patch) | |
| tree | 7b3f232cf8d7a3ec2d57bfafef5a36438ee124c3 | |
| parent | e2d814ffc20e231a3b8201f7d66145939c99174c (diff) | |
| download | python-apt-a65009779237610d6be290222aeb69af8b19ad34.tar.gz | |
apt/cache.py: Fix the (inst|keep|broken|del)_count attributes (Closes: #542773).
| -rw-r--r-- | apt/cache.py | 8 | ||||
| -rw-r--r-- | debian/changelog | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/apt/cache.py b/apt/cache.py index 33d55368..bc1d1160 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -344,22 +344,22 @@ class Cache(object): @property def broken_count(self): """Return the number of packages with broken dependencies.""" - return self._depcache.broken_count + return self._depcache.BrokenCount @property def delete_count(self): """Return the number of packages marked for deletion.""" - return self._depcache.del_count + return self._depcache.DelCount @property def install_count(self): """Return the number of packages marked for installation.""" - return self._depcache.inst_count + return self._depcache.InstCount @property def keep_count(self): """Return the number of packages marked as keep.""" - return self._depcache.keep_count + return self._depcache.KeepCount class ProblemResolver(object): diff --git a/debian/changelog b/debian/changelog index bf5a6036..575db1b3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,10 @@ python-apt (0.7.13.0) UNRELEASED; urgency=low * apt/package.py: - add "recommends" property + [ Sebastian Heinlein ] + * apt/cache.py: + - Fix the (inst|keep|broken|del)_count attributes (Closes: #542773). + [ Julian Andres Klode ] * apt/package.py: - Introduce Version.get_dependencies() which takes one or more types |
