diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-04-04 18:07:10 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-04-04 18:07:10 +0200 |
| commit | 52475d3ddc835c3b543d98ee1c16df4989a4112d (patch) | |
| tree | d2049afad1a8f39187fed2a60e1482cfc0a9cd65 /doc | |
| parent | c26142274b74c53e80c4680822711e2e804c6fb0 (diff) | |
| parent | 9dd02cdd42eccb8c4e52f08c334df22a31c8d256 (diff) | |
| download | python-apt-52475d3ddc835c3b543d98ee1c16df4989a4112d.tar.gz | |
merged from debian-sid
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/source/library/apt_pkg.rst | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/doc/source/library/apt_pkg.rst b/doc/source/library/apt_pkg.rst index 81358bac..426cb97e 100644 --- a/doc/source/library/apt_pkg.rst +++ b/doc/source/library/apt_pkg.rst @@ -437,18 +437,35 @@ Resolving Dependencies with :class:`ProblemResolver` ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. class:: Package - Represent a package. A package is uniquely identified by its name - and each package can have zero or more versions which can be + Represent a package. A package is uniquely identified by its name and + architecture and each package can have zero or more versions which can be accessed via the :attr:`version_list` property. Packages can be installed and removed by a :class:`DepCache` object. Attributes: + .. attribute: architecture + + The architecture of the package. This is relevant on multi-arch + systems only. Please note that if a package is Architecture: all, + this value is not "all", but the architecture of the package file + it comes from. + + .. versionadded:: 0.7.100.3 + .. attribute:: current_ver The version currently installed as a :class:`Version` object, or None if the package is not installed. + .. method:: get_fullname([pretty: bool = False]) -> str + + Get the full name of the package, including the architecture. If + *pretty* is ``True``, the architecture is omitted for native packages, + that is, an amd64 "apt" package on an amd64 system would give "apt". + + .. versionadded:: 0.7.100.3 + .. attribute:: has_provides A boolean value determining whether the list available via the |
