aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs8
1 files changed, 8 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index 17fbd02..bc2e333 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -233,6 +233,14 @@ rpmtag_from_string(const char *tag)
qv_c = NULL;
static const char tag_context[] = "rpmtag",
qv_context[] = "rpmqvsources";
+ /* XXX: rpmcli.h: @todo Reassign to tag values. */
+ if (!strcmp(tag, "whatprovides"))
+ return RPMTAG_PROVIDENAME;
+ else if (!strcmp(tag, "whatrequires"))
+ return RPMTAG_REQUIRENAME;
+ else if (!strcmp(tag, "path"))
+ return RPMTAG_BASENAMES;
+
if(tag_c == NULL) {
tag_c = rpmconstNew();
if(!rpmconstInitToContext(tag_c, tag_context))