diff options
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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)) |