summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-08-27 11:55:17 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2009-08-27 11:55:17 +0200
commit266037aa42b7c511d9c428767ee53300ec23faf1 (patch)
tree19142223993aa25c1ca48e6134fd4c2722b9b459
parentefad08768bc116c15de5f92387e1fd88c0734fd0 (diff)
parentd914d4c1e241f8e511361b9ce98993ca8e1b98af (diff)
downloadpython-apt-266037aa42b7c511d9c428767ee53300ec23faf1.tar.gz
merge from debian sid
-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