Bug#542773: python-apt: The (inst|keep|broken|del)_count attributes of apt.Cache are broken
Package: python-apt
Version: 0.7.12.1
Severity: important
See the attached patch.
Cheers,
Sebastian
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-apt depends on:
ii apt [libapt-pkg-libc6.9-6-4.8 0.7.22.2 Advanced front-end for dpkg
ii apt-utils [libapt-inst-libc6. 0.7.22.2 APT utility programs
ii libc6 2.9-23 GNU C Library: Shared libraries
ii libgcc1 1:4.4.1-1 GCC support library
ii libstdc++6 4.4.1-1 The GNU Standard C++ Library v3
ii lsb-release 3.2-23 Linux Standard Base version report
ii python 2.5.4-2 An interactive high-level object-o
ii python-central 0.6.11 register and build utility for Pyt
Versions of packages python-apt recommends:
ii iso-codes 3.10.2-1 ISO language, territory, currency,
ii libjs-jquery 1.3.3-1 JavaScript library for dynamic web
Versions of packages python-apt suggests:
pn python-apt-dbg <none> (no description available)
ii python-gtk2 2.14.1-3 Python bindings for the GTK+ widge
ii python-vte 1:0.20.5-1 Python bindings for the VTE widget
-- no debconf information
=== modified file 'apt/cache.py'
--- apt/cache.py 2009-07-30 13:00:44 +0000
+++ apt/cache.py 2009-08-20 23:13:29 +0000
@@ -345,22 +345,22 @@
@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
# ----------------------------- experimental interface
Reply to: