diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2022-04-08 12:35:38 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2022-04-08 13:16:26 +0300 |
commit | 6f37460083fbe332ba36a53133a8e6b6064e7264 (patch) | |
tree | de5cdce5aea5e9ea5d0badf0ebb25d627fe88466 | |
parent | fab9eb143c8cc521ba8ee4709a647a2fd4289c43 (diff) | |
download | rpm-6f37460083fbe332ba36a53133a8e6b6064e7264.tar.gz |
Add python rpm.ds constructor docs
-rw-r--r-- | python/rpmds-py.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python/rpmds-py.c b/python/rpmds-py.c index eaf025a5b..4cd5ca26e 100644 --- a/python/rpmds-py.c +++ b/python/rpmds-py.c @@ -359,6 +359,13 @@ static char rpmds_doc[] = "It can hold multiple entries of Name Flags and EVR.\n" "It typically represents all dependencies of one kind of a package\n" "e.g. all Requires or all Conflicts.\n" + "\n" + "A dependency set can be instantiated from a header or a tuple:\n" + "ds(hdr, tag, pool=None)\n" + "ds((e, v, r), tag, pool=None)\n\n" + "tag is the dependency type, eg 'requires', 'provides', 'obsoletes' etc" + "or the corresponding RPMTAG_* value. As a special case, 'nevr' returns" + "a provide of the header NEVR." ; PyTypeObject rpmds_Type = { |