summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-04-04 12:01:34 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2011-04-04 12:01:34 +0200
commit3a4a11628a6f80c2caed9488219f19d52f923917 (patch)
tree476e54d05220a6fe65594970b475507e90ebde40 /doc/source
parent50ad561deddca0b239f67ce25fd9800e8bbe94a9 (diff)
parent80e04f26777a5c7bd32b40a48f46f8d9f1c8aeb1 (diff)
downloadpython-apt-3a4a11628a6f80c2caed9488219f19d52f923917.tar.gz
merged from debian-sid
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/library/apt_pkg.rst21
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