diff options
| author | Sebastian Heinlein <devel@glatzor.de> | 2009-08-25 08:41:26 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-08-25 08:41:26 +0200 |
| commit | d914d4c1e241f8e511361b9ce98993ca8e1b98af (patch) | |
| tree | 19142223993aa25c1ca48e6134fd4c2722b9b459 | |
| parent | b564655353399acb70431b31c63f3df08c5d42ab (diff) | |
| download | python-apt-d914d4c1e241f8e511361b9ce98993ca8e1b98af.tar.gz | |
apt/package.py: Export if a package is an essential one (Closes: #543428)
| -rw-r--r-- | apt/package.py | 5 | ||||
| -rw-r--r-- | debian/changelog | 4 |
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 |
