summaryrefslogtreecommitdiff
path: root/apt/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'apt/package.py')
-rw-r--r--apt/package.py5
1 files changed, 5 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.