diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-08-21 14:57:44 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-08-21 14:57:44 +0200 |
| commit | 200249fc4f0fccd19e12e1abcb718c08df0bf752 (patch) | |
| tree | 87d00d78cc72605d95f31b957b69a218d3eb2740 /apt | |
| parent | c31fb6542e64a7eb279d0b246da4ea15dc4d6af3 (diff) | |
| download | python-apt-200249fc4f0fccd19e12e1abcb718c08df0bf752.tar.gz | |
apt/package.py: Add Package.is_now_broken and Package.is_inst_broken.
Diffstat (limited to 'apt')
| -rw-r--r-- | apt/package.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apt/package.py b/apt/package.py index e33078d8..59fb8cfa 100644 --- a/apt/package.py +++ b/apt/package.py @@ -1008,6 +1008,16 @@ class Package(object): """ return VersionList(self) + @property + def is_inst_broken(self): + """Return True if the to-be-installed package is broken.""" + return self._pcache._depcache.IsInstBroken(self._pkg) + + @property + def is_now_broken(self): + """Return True if the installed package is broken.""" + return self._pcache._depcache.IsNowBroken(self._pkg) + # depcache actions def markKeep(self): |
