summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2011-03-21 14:48:47 +0100
committerMichael Vogt <mvo@debian.org>2011-03-21 14:48:47 +0100
commit5050f5f7c7f4b1fdd8bfec37c8baead2237e4f2d (patch)
tree07a4a5b10e9d9900501d43f76bd86593172efce1 /doc/source
parentbe46a92a5621d2c199792ead5371afb979f32f9c (diff)
parent22ab3421fbb8e936c3e6e32175a04ad801d7f511 (diff)
downloadpython-apt-5050f5f7c7f4b1fdd8bfec37c8baead2237e4f2d.tar.gz
merged from mvo
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/library/apt_pkg.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/source/library/apt_pkg.rst b/doc/source/library/apt_pkg.rst
index f1bc4845..81358bac 100644
--- a/doc/source/library/apt_pkg.rst
+++ b/doc/source/library/apt_pkg.rst
@@ -1731,7 +1731,7 @@ Dependencies
The following two functions provide the ability to parse dependencies. They
use the same format as :attr:`Version.depends_list_str`.
-.. function:: parse_depends(depends)
+.. function:: parse_depends(depends, strip_multiarch=True)
Parse the string *depends* which contains dependency information as
specified in Debian Policy, Section 7.1.
@@ -1743,6 +1743,9 @@ use the same format as :attr:`Version.depends_list_str`.
>>> apt_pkg.parse_depends("PkgA (>= VerA) | PkgB (>= VerB)")
[[('PkgA', 'VerA', '>='), ('PkgB', 'VerB', '>=')]]
+ Note that multiarch dependency information is stripped off by default.
+ You can force the full dependency info (including the multiarch info)
+ by passing "False" as a additional parameter to this function.
.. note::