summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-01-15 15:20:23 +0100
committerJulian Andres Klode <jak@debian.org>2010-01-15 15:20:23 +0100
commit52cca77b8179a7f625673f19cb132686c0d416c9 (patch)
tree2b554f1669754dc68ec112b16d6081fd60dfb5e3 /doc
parent2ccb7545bb8c869f5f6192569a47a7522b6fbc83 (diff)
parent71aad7e28bbaf1ee8efdad77ebfb4e4c0fd0ec26 (diff)
downloadpython-apt-52cca77b8179a7f625673f19cb132686c0d416c9.tar.gz
Merge 0.7.13.5 pre.
Diffstat (limited to 'doc')
-rw-r--r--doc/source/library/apt_pkg.rst45
1 files changed, 45 insertions, 0 deletions
diff --git a/doc/source/library/apt_pkg.rst b/doc/source/library/apt_pkg.rst
index 720b61a3..5876fb8d 100644
--- a/doc/source/library/apt_pkg.rst
+++ b/doc/source/library/apt_pkg.rst
@@ -638,10 +638,55 @@ Example:
The type of the dependency, as string, eg. "Depends".
+ .. attribute:: dep_type_enum
+
+ The type of the dependency, as an integer which can be compared to
+ one of the TYPE_* constants below.
+
+ .. attribute:: dep_type_untranslated
+
+ The type of the depndency, as an untranslated string.
+
.. attribute:: id
The ID of the package, as integer.
+ .. attribute:: TYPE_CONFLICTS
+
+ Constant for checking against dep_type_enum
+
+ .. attribute:: TYPE_DEPENDS
+
+ Constant for checking against dep_type_enum
+
+ .. attribute:: TYPE_DPKG_BREAKS
+
+ Constant for checking against dep_type_enum
+
+ .. attribute:: TYPE_ENHANCES
+
+ Constant for checking against dep_type_enum
+
+ .. attribute:: TYPE_OBSOLETES
+
+ Constant for checking against dep_type_enum
+
+ .. attribute:: TYPE_PREDEPENDS
+
+ Constant for checking against dep_type_enum
+
+ .. attribute:: TYPE_RECOMMENDS
+
+ Constant for checking against dep_type_enum
+
+ .. attribute:: TYPE_REPLACES
+
+ Constant for checking against dep_type_enum
+
+ .. attribute:: TYPE_SUGGESTS
+
+ Constant for checking against dep_type_enum
+
Example: Find all missing dependencies
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
With the help of Dependency.AllTargets(), you can easily find all packages with