From 06bc637621014289a812d48a5c479dfe699527f2 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 13 Jan 2010 12:12:50 +0100 Subject: * python/cache.cc: - add UntranslatedDepType attribute to DependencyType - add DepTypeEnum that returns a value from {DepDepends, DepPreDepends, ...} * python/apt_pkgmodule.cc: - add DepDpkgBreaks, DepEnhances constants * doc/source/apt_pkg/{cache.rst, index.rst}: - update documentation as well --- doc/source/apt_pkg/cache.rst | 9 +++++++++ doc/source/apt_pkg/index.rst | 3 +++ 2 files changed, 12 insertions(+) (limited to 'doc') diff --git a/doc/source/apt_pkg/cache.rst b/doc/source/apt_pkg/cache.rst index 334b7869..1be81b42 100644 --- a/doc/source/apt_pkg/cache.rst +++ b/doc/source/apt_pkg/cache.rst @@ -596,8 +596,17 @@ Example: .. attribute:: DepType + The type of the dependency, as translated string, eg. "Depends". + + .. attribute:: UntranslatedDepType + The type of the dependency, as string, eg. "Depends". + .. attribute:: DepTypeEnum + + The type of the dependency, as integer that matches a value + of `Dependency types`_ + .. attribute:: ID The ID of the package, as integer. diff --git a/doc/source/apt_pkg/index.rst b/doc/source/apt_pkg/index.rst index 6e7b772e..aba7d82e 100644 --- a/doc/source/apt_pkg/index.rst +++ b/doc/source/apt_pkg/index.rst @@ -336,12 +336,15 @@ Dependency types ^^^^^^^^^^^^^^^^ .. data:: DepConflicts .. data:: DepDepends +.. data:: DepDpkgBreaks +.. data:: DepEnhances .. data:: DepObsoletes .. data:: DepPreDepends .. data:: DepRecommends .. data:: DepReplaces .. data:: DepSuggests + .. _InstStates: Installed states -- cgit v1.2.3 From 2530221de1657aeac3fa2b93c6b17712a08c6399 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 13 Jan 2010 13:21:46 +0100 Subject: doc/source/apt_pkg/cache.rst: fix cross-reference to _DependencyTypes --- doc/source/apt_pkg/cache.rst | 2 +- doc/source/apt_pkg/index.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/source/apt_pkg/cache.rst b/doc/source/apt_pkg/cache.rst index 1be81b42..ca9f8b49 100644 --- a/doc/source/apt_pkg/cache.rst +++ b/doc/source/apt_pkg/cache.rst @@ -605,7 +605,7 @@ Example: .. attribute:: DepTypeEnum The type of the dependency, as integer that matches a value - of `Dependency types`_ + of :ref:`Dependency types `. .. attribute:: ID diff --git a/doc/source/apt_pkg/index.rst b/doc/source/apt_pkg/index.rst index aba7d82e..4256d971 100644 --- a/doc/source/apt_pkg/index.rst +++ b/doc/source/apt_pkg/index.rst @@ -329,7 +329,7 @@ Package States .. data:: CurStateNotInstalled .. data:: CurStateUnPacked - +.. _DependencyTypes: Dependency types -- cgit v1.2.3