summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt/package.py5
-rw-r--r--debian/changelog4
2 files changed, 9 insertions, 0 deletions
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