diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-09-07 13:37:20 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-09-07 13:37:20 +0200 |
| commit | 5498a3d94354732d215e23beeb9c07a47616cabb (patch) | |
| tree | 1736eb4aa18d8025b688b08be843a8a0338725dc /apt/package.py | |
| parent | bc301a8f07e50c7a14973b10fa4cb95f7a2beff2 (diff) | |
| parent | 3aaf50270475e0a2a5fc8e7783e2f8917f8ac327 (diff) | |
| download | python-apt-5498a3d94354732d215e23beeb9c07a47616cabb.tar.gz | |
* add "provides" property to the apt.Version objects
* apt/debfile.py:
- fix error when reading binary content and add regresion test
* merged patch from Samuel Lidén Borell to fix crash if there utf8
in the control file (LP: #624290) and add test
* apt/cache.py:
- add "sources_list" parameter to cache.update() to force updating
a single sources.list entry only
* debian/control:
- add missing build-depends on python-debian (needed to run the
tests for apt.debfile.DebPackage()
Diffstat (limited to 'apt/package.py')
| -rw-r--r-- | apt/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apt/package.py b/apt/package.py index 228a3385..871c1e16 100644 --- a/apt/package.py +++ b/apt/package.py @@ -415,6 +415,11 @@ class Version(object): return depends_list @property + def provides(self): + """ Return a list of names that this version provides.""" + return [p[0] for p in self._cand.provides_list] + + @property def enhances(self): """Return the list of enhances for the package version.""" return self.get_dependencies("Enhances") |
