diff options
| author | Julian Andres Klode <jak@debian.org> | 2013-10-15 23:24:54 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2013-10-15 23:26:26 +0200 |
| commit | 01995674f11c2ce21d4daf1b82160fc60215abc4 (patch) | |
| tree | 43efa7179238ee3361881ccdf14675c4f7b7f728 /python/apt_pkgmodule.cc | |
| parent | 4e993e56261be9730f565f86e728ad6928b99ea4 (diff) | |
| download | python-apt-01995674f11c2ce21d4daf1b82160fc60215abc4.tar.gz | |
python/apt_pkgmodule.cc: Document second parameter of parse_{,src_}depends
The functions apt_pkg.parse_depends and apt_pkg.parse_src_depends take a
second positional argument telling it whether to strip multi-arch strings
or not.
Diffstat (limited to 'python/apt_pkgmodule.cc')
| -rw-r--r-- | python/apt_pkgmodule.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/python/apt_pkgmodule.cc b/python/apt_pkgmodule.cc index 65a7c950..a3916021 100644 --- a/python/apt_pkgmodule.cc +++ b/python/apt_pkgmodule.cc @@ -129,17 +129,19 @@ static PyObject *UpstreamVersion(PyObject *Self,PyObject *Args) } static const char *doc_ParseDepends = -"parse_depends(s: str) -> list\n" +"parse_depends(s: str[, strip_multi_arch : bool = True]) -> list\n" "\n" "Parse the dependencies given by 's' and return a list of lists. Each of\n" "these lists represents one or more options for an 'or' dependency in\n" "the form of '(pkg, ver, comptype)' tuples. The tuple element 'pkg'\n" "is the name of the package; the element 'ver' is the version, or ''\n" "if no version was requested. The element 'ver' is a comparison\n" -"operator ('<', '<=', '=', '>=', or '>')."; +"operator ('<', '<=', '=', '>=', or '>').\n\n" +"If 'strip_multi_arch' is True, :any (and potentially other special values)\n" +"will be stripped from the full package name"; static const char *parse_src_depends_doc = -"parse_src_depends(s: str) -> list\n" +"parse_src_depends(s: str[, strip_multi_arch : bool = True]) -> list\n" "\n" "Parse the dependencies given by 's' and return a list of lists. Each of\n" "these lists represents one or more options for an 'or' dependency in\n" @@ -150,7 +152,9 @@ static const char *parse_src_depends_doc = "\n\n" "Dependencies may be restricted to certain architectures and the result\n" "only contains those dependencies for the architecture set in the\n" -"configuration variable APT::Architecture"; +"configuration variable APT::Architecture\n\n" +"If 'strip_multi_arch' is True, :any (and potentially other special values)\n" +"will be stripped from the full package name"; static PyObject *RealParseDepends(PyObject *Self,PyObject *Args, bool ParseArchFlags, std::string name, bool debStyle=false) |
