diff options
Diffstat (limited to 'apt')
| -rw-r--r-- | apt/cache.py | 4 | ||||
| -rw-r--r-- | apt/package.py | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/apt/cache.py b/apt/cache.py index aa38999d..ae6f2fcc 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -47,7 +47,9 @@ class Cache(object): Keyword arguments: progress -- a OpProgress object - rootdir -- a alternative root directory + rootdir -- a alternative root directory. if that is given + the system sources.list and system lists/ files are + not read, only files relative to the given rootdir memonly -- build the cache in memory only """ diff --git a/apt/package.py b/apt/package.py index 8d3be1b0..f33871c6 100644 --- a/apt/package.py +++ b/apt/package.py @@ -379,6 +379,11 @@ class Version(object): return depends_list @property + def enhances(self): + """Return the list of enhances for the package version.""" + return self.get_dependencies("Enhances") + + @property def dependencies(self): """Return the dependencies of the package version.""" return self.get_dependencies("PreDepends", "Depends") |
