summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt/package.py5
-rw-r--r--debian/changelog2
2 files changed, 7 insertions, 0 deletions
diff --git a/apt/package.py b/apt/package.py
index cb373c2e..e09acca4 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -455,6 +455,11 @@ class Version(object):
return self.get_dependencies("Recommends")
@property
+ def suggests(self):
+ """Return the suggests of the package version."""
+ return self.get_dependencies("Suggests")
+
+ @property
def origins(self):
"""Return a list of origins for the package version."""
origins = []
diff --git a/debian/changelog b/debian/changelog
index 14ee705e..afffdf12 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -22,6 +22,8 @@ python-apt (0.8.2) UNRELEASED; urgency=low
* apt/cache.py:
- set Dir::bin::dpkg if a alternate rootdir is given
(LP: #885895)
+ * apt/package.py:
+ - add new "suggests" property, thanks to Christop Groth
[ Tshepang Lekhonkhobe ]
* rm usage of camelcase in cache.py doc (closes: #626617)