summaryrefslogtreecommitdiff
path: root/doc/source/apt/package.rst
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-03-23 14:18:44 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2010-03-23 14:18:44 +0100
commit37650a078f5504dfbc6622d2c06f4435a3302dd4 (patch)
tree35d7df75535420cbe0712a5f7b7b66d61f5e44d1 /doc/source/apt/package.rst
parent2aa709e41d8896ef897863ea9181c409c4c87a8c (diff)
parent3a08cfb10590d5cf5df1f45d94a424ef6a0f674b (diff)
downloadpython-apt-37650a078f5504dfbc6622d2c06f4435a3302dd4.tar.gz
merged from lp:~mvo/python-apt/mvo
Diffstat (limited to 'doc/source/apt/package.rst')
-rw-r--r--doc/source/apt/package.rst111
1 files changed, 0 insertions, 111 deletions
diff --git a/doc/source/apt/package.rst b/doc/source/apt/package.rst
deleted file mode 100644
index bb74915e..00000000
--- a/doc/source/apt/package.rst
+++ /dev/null
@@ -1,111 +0,0 @@
-:mod:`apt.package` --- Classes for package handling
-====================================================
-
-
-.. automodule:: apt.package
-
-
-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
- :members:
-
-
-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 (>>,>=,==,<<,<=,)
-
- .. attribute:: version
-
- The version or None.
-
- .. attribute:: preDepend
-
- Boolean value whether this is a pre-dependency.
-
-.. class:: Dependency
-
- The dependency class represents a Or-Group of dependencies. It provides
- an attribute to access the :class:`BaseDependency` object for the available
- choices.
-
- .. attribute:: or_dependencies
-
- A list of :class:`BaseDependency` objects which could satisfy the
- requirement of the Or-Group.
-
-
-Origin Information
--------------------
-.. class:: Origin
-
- The :class:`Origin` class provides access to the origin of the package.
- It allows you to check the component, archive, the hostname, and even if
- this package can be trusted.
-
- .. attribute:: archive
-
- The archive (eg. unstable)
-
- .. attribute:: component
-
- The component (eg. main)
-
- .. attribute:: label
-
- The Label, as set in the Release file
-
- .. attribute:: origin
-
- The Origin, as set in the Release file
-
- .. attribute:: site
-
- The hostname of the site.
-
- .. attribute:: trusted
-
- Boolean value whether this is trustworthy. An origin can be trusted, if
- it provides a GPG-signed Release file and the GPG-key used is in the
- keyring used by apt (see apt-key).
-
-Examples
----------
-.. code-block:: python
-
- import apt
-
- cache = apt.Cache()
- pkg = cache['python-apt'] # Access the Package object for python-apt
- 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 (summary):', pkg.candidate.summary
-
- # Now, really install it
- cache.commit()