summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2022-04-08 12:35:38 +0300
committerMichal Domonkos <mdomonko@redhat.com>2022-07-01 10:52:14 +0200
commit832326978f88c3d3b434271b5e465af6b80a8390 (patch)
tree40991af97f01f28ec9492e2a9c30c84a3e3c313b
parent8087beaf6d19234c5536f51c496afa8f2f825e42 (diff)
downloadrpm-832326978f88c3d3b434271b5e465af6b80a8390.tar.gz
Add python rpm.ds constructor docs
(cherry picked from commit 16d06d76e36f03e7ed92776d309e20906b9f6875)
-rw-r--r--python/rpmds-py.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/rpmds-py.c b/python/rpmds-py.c
index 2853ed2df..1f7dc8bed 100644
--- a/python/rpmds-py.c
+++ b/python/rpmds-py.c
@@ -358,6 +358,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 = {