diff options
| author | Julian Andres Klode <jak@debian.org> | 2014-01-25 17:02:10 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2014-01-25 17:16:13 +0100 |
| commit | b86459a1114684f4e65a5639d46975670304f65b (patch) | |
| tree | 6da7149bf2b1f232b1e6e7dc3c70a1697149b443 /doc | |
| parent | e50f19ba24ff8999d6d18da3fd06cdb44dfccced (diff) | |
| download | python-apt-b86459a1114684f4e65a5639d46975670304f65b.tar.gz | |
apt/package.py: Pass an apt_pkg.Dependency to BaseDependency
Instead of passing the properties to __init__(), let's just pass
the apt_pkg.Dependency. Store that in a _dep attribute, and provide
properties to provide the API. The other classes do it this way
as well.
Reported-by: Michael Schaller <michael@5challer.de>
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/source/library/apt.package.rst | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/doc/source/library/apt.package.rst b/doc/source/library/apt.package.rst index 825bf3df..1a69c1e2 100644 --- a/doc/source/library/apt.package.rst +++ b/doc/source/library/apt.package.rst @@ -23,27 +23,8 @@ The Version class Dependency Information ---------------------- -.. class:: BaseDependency - - The :class:`BaseDependency` class defines various attributes for accessing - the parts of a dependency. The attributes are as follows: - - .. attribute:: name - - The name of the dependency - - .. attribute:: relation - - The relation (<,<=,=,!=,>=,>,), as string. Note that the empty string - is a valid string as well, if no version is specified. - - .. attribute:: version - - The version or None. - - .. attribute:: pre_depend - - Boolean value whether this is a pre-dependency. +.. autoclass:: BaseDependency + :members: .. class:: Dependency |
