Bug#543428: python-apt: Export if a package is an essential one
Package: python-apt
Version: 0.7.12.1
Severity: wishlist
Currently this information can only be accessed by using private API:
apt.package.Package._pkg.Essential
-- 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/package.py'
--- apt/package.py 2009-08-21 15:00:03 +0000
+++ apt/package.py 2009-08-24 23:09:09 +0000
@@ -652,6 +652,11 @@
This returns the same value as ID, which is unique."""
return self._pkg.ID
+ @property
+ def essential(self):
+ """Return True if the package is an essential part of the system."""
+ return self._pkg.Essential
+
@DeprecatedProperty
def installedVersion(self):
"""Return the installed version as string.
Reply to: