summaryrefslogtreecommitdiff
path: root/doc/source/apt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source/apt')
-rw-r--r--doc/source/apt/package.rst9
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/source/apt/package.rst b/doc/source/apt/package.rst
index 6781717c..bb74915e 100644
--- a/doc/source/apt/package.rst
+++ b/doc/source/apt/package.rst
@@ -10,6 +10,11 @@ The Package class
.. autoclass:: Package
:members:
+ .. note::
+
+ Several methods have been deprecated in version 0.7.9 of python-apt,
+ please see the :class:`Version` class for the new alternatives.
+
The Version class
-----------------
.. autoclass:: Version
@@ -93,14 +98,14 @@ Examples
cache = apt.Cache()
pkg = cache['python-apt'] # Access the Package object for python-apt
- print 'python-apt is trusted:', pkg.candidateOrigin.trusted
+ print 'python-apt is trusted:', pkg.candidate.origins[0].trusted
# Mark python-apt for install
pkg.markInstall()
print 'python-apt is marked for install:', pkg.markedInstall
- print 'python-apt is', pkg.summary #Python interface to libapt-pkg
+ print 'python-apt is (summary):', pkg.candidate.summary
# Now, really install it
cache.commit()