From d914d4c1e241f8e511361b9ce98993ca8e1b98af Mon Sep 17 00:00:00 2001 From: Sebastian Heinlein Date: Tue, 25 Aug 2009 08:41:26 +0200 Subject: apt/package.py: Export if a package is an essential one (Closes: #543428) --- apt/package.py | 5 +++++ debian/changelog | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/apt/package.py b/apt/package.py index d639f31f..27e0dc90 100644 --- a/apt/package.py +++ b/apt/package.py @@ -652,6 +652,11 @@ class Package(object): 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. diff --git a/debian/changelog b/debian/changelog index 00900dad..bfba50e0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,10 @@ python-apt (0.7.13.3) UNRELEASED; urgency=low * apt/cache.py: - add actiongroup() method (backport from 0.7.92) + [ Sebastian Heinlein ] + * apt/package.py: + - Export if a package is an essential one (Closes: #543428) + [ Julian Andres Klode ] * python/depcache.cc: - Make ActionGroups context managers so apt.Cache.actiongroup() has -- cgit v1.2.3