summaryrefslogtreecommitdiff
path: root/apt
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2008-07-14 15:18:38 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2008-07-14 15:18:38 +0100
commit989851644e18c6ff446155b5f19d57df2b834253 (patch)
tree12282671d47ad8781f338eee395deb369706fe29 /apt
parent798980a40020e6571a284ae4c5336e3d210cb7fb (diff)
parent5de8e3d1ecd159d5c27e62264b794cc1124b14fa (diff)
downloadpython-apt-989851644e18c6ff446155b5f19d57df2b834253.tar.gz
upload as 0.7.6ubuntu3
Diffstat (limited to 'apt')
-rw-r--r--apt/package.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/apt/package.py b/apt/package.py
index ac045969..096b1bd1 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -319,6 +319,14 @@ class Package(object):
return self.isInstalled and self._depcache.IsUpgradable(self._pkg)
isUpgradable = property(isUpgradable)
+ def isAutoRemovable(self):
+ """
+ Package is installed as a automatic dependency and is
+ no longer required
+ """
+ return self.isInstalled and self._depcache.IsGarbage(self._pkg)
+ isAutoRemovable = property(isAutoRemovable)
+
# size
def packageSize(self):
""" The size of the candidate deb package """