From 832326978f88c3d3b434271b5e465af6b80a8390 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Fri, 8 Apr 2022 12:35:38 +0300 Subject: Add python rpm.ds constructor docs (cherry picked from commit 16d06d76e36f03e7ed92776d309e20906b9f6875) --- python/rpmds-py.c | 7 +++++++ 1 file changed, 7 insertions(+) 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 = { -- cgit v1.2.1