From a65009779237610d6be290222aeb69af8b19ad34 Mon Sep 17 00:00:00 2001 From: Sebastian Heinlein Date: Fri, 21 Aug 2009 15:26:31 +0200 Subject: apt/cache.py: Fix the (inst|keep|broken|del)_count attributes (Closes: #542773). --- apt/cache.py | 8 ++++---- 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 -- cgit v1.2.3