diff options
| author | Michael Vogt <mvo@debian.org> | 2011-03-21 14:48:47 +0100 |
|---|---|---|
| committer | Michael Vogt <mvo@debian.org> | 2011-03-21 14:48:47 +0100 |
| commit | 5050f5f7c7f4b1fdd8bfec37c8baead2237e4f2d (patch) | |
| tree | 07a4a5b10e9d9900501d43f76bd86593172efce1 /doc/source | |
| parent | be46a92a5621d2c199792ead5371afb979f32f9c (diff) | |
| parent | 22ab3421fbb8e936c3e6e32175a04ad801d7f511 (diff) | |
| download | python-apt-5050f5f7c7f4b1fdd8bfec37c8baead2237e4f2d.tar.gz | |
merged from mvo
Diffstat (limited to 'doc/source')
| -rw-r--r-- | doc/source/library/apt_pkg.rst | 5 |
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:: |
